Browse Source

Remove negation from PCB_BASE_FRAME::PlaceModule() parameter

Negated parameters make code confusing. Now the parameter
description is accurate.
pull/5/merge
Maciej Suminski 8 years ago
parent
commit
0521b63503
  1. 4
      include/pcb_base_frame.h
  2. 2
      pcbnew/dialogs/dialog_exchange_footprints.cpp
  3. 4
      pcbnew/pcb_footprint_edit_utils.cpp

4
include/pcb_base_frame.h

@ -333,9 +333,9 @@ public:
* @param aModule A MODULE object point of the module to be placed.
* @param aDC A wxDC object point of the device context to draw \a aModule on
* or NULL if no display screen need updated.
* @param aDoNotRecreateRatsnest A bool true redraws the module rats nest.
* @param aRecreateRatsnest A bool true redraws the module rats nest.
*/
void PlaceModule( MODULE* aModule, wxDC* aDC, bool aDoNotRecreateRatsnest = false );
void PlaceModule( MODULE* aModule, wxDC* aDC, bool aRecreateRatsnest = true );
// module texts
void RotateTextModule( TEXTE_MODULE* Text, wxDC* DC );

2
pcbnew/dialogs/dialog_exchange_footprints.cpp

@ -467,7 +467,7 @@ void PCB_EDIT_FRAME::Exchange_Module( MODULE* aOldModule,
/* place module without ratsnest refresh: this will be made later
* when all modules are on board */
PlaceModule( aNewModule, NULL, true );
PlaceModule( aNewModule, NULL, false );
// Copy full placement and pad net names (when possible)
// but not local settings like clearances (use library values)

4
pcbnew/pcb_footprint_edit_utils.cpp

@ -349,7 +349,7 @@ void PCB_EDIT_FRAME::Change_Side_Module( MODULE* Module, wxDC* DC )
}
void PCB_BASE_FRAME::PlaceModule( MODULE* aModule, wxDC* aDC, bool aDoNotRecreateRatsnest )
void PCB_BASE_FRAME::PlaceModule( MODULE* aModule, wxDC* aDC, bool aRecreateRatsnest )
{
wxPoint newpos;
@ -413,7 +413,7 @@ void PCB_BASE_FRAME::PlaceModule( MODULE* aModule, wxDC* aDC, bool aDoNotRecreat
m_Pcb->GetConnectivity()->Update( aModule );
if( GetBoard()->IsElementVisible( LAYER_RATSNEST ) && !aDoNotRecreateRatsnest )
if( GetBoard()->IsElementVisible( LAYER_RATSNEST ) && aRecreateRatsnest )
Compile_Ratsnest( aDC, true );
if( aDC )

Loading…
Cancel
Save