pcbnew: change module - fix the position of the new module is the same as the old module

This commit is contained in:
Andrey Fedorushkov 2011-05-03 18:23:17 +04:00
parent 79b6e4278e
commit 87d2b44f13
1 changed files with 2 additions and 2 deletions

View File

@ -473,13 +473,13 @@ void PCB_EDIT_FRAME::Exchange_Module( MODULE* aOldModule,
GetBoard()->m_Status_Pcb = 0;
oldpos = GetScreen()->GetCrossHairPosition();
GetScreen()->SetCrossHairPosition( aOldModule->m_Pos );
GetScreen()->SetCrossHairPosition( aOldModule->m_Pos, false );
/* place module without ratsnest refresh: this will be made later
* when all modules are on board
*/
Place_Module( aNewModule, NULL, true );
GetScreen()->SetCrossHairPosition( oldpos );
GetScreen()->SetCrossHairPosition( oldpos, false );
/* Flip footprint if needed */
if( aOldModule->GetLayer() != aNewModule->GetLayer() )