From 87d2b44f13c637089958fe1c4392222db1c6d3be Mon Sep 17 00:00:00 2001 From: Andrey Fedorushkov Date: Tue, 3 May 2011 18:23:17 +0400 Subject: [PATCH] pcbnew: change module - fix the position of the new module is the same as the old module --- pcbnew/xchgmod.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/xchgmod.cpp b/pcbnew/xchgmod.cpp index eb772c47b9..00f987a61f 100644 --- a/pcbnew/xchgmod.cpp +++ b/pcbnew/xchgmod.cpp @@ -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() )