Commit 87d2b44f authored by Andrey Fedorushkov's avatar Andrey Fedorushkov

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

parent 79b6e427
......@@ -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() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment