From 14c1486062577dcc734be0dd7e838905656b355b Mon Sep 17 00:00:00 2001 From: Andrey Fedorushkov Date: Mon, 24 Oct 2011 19:23:06 +0400 Subject: [PATCH] Pcbnew: add send msg to Eeschema when move module --- pcbnew/edit.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcbnew/edit.cpp b/pcbnew/edit.cpp index 397070936d..6825f27d27 100644 --- a/pcbnew/edit.cpp +++ b/pcbnew/edit.cpp @@ -606,9 +606,10 @@ void PCB_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event ) break; } - GetScreen()->SetCrossHairPosition( ((MODULE*) GetCurItem())->m_Pos ); + SendMessageToEESCHEMA( module ); + GetScreen()->SetCrossHairPosition( module->m_Pos ); DrawPanel->MoveCursorToCrossHair(); - StartMove_Module( (MODULE*) GetCurItem(), &dc ); + StartMove_Module( module, &dc ); break; case ID_POPUP_PCB_GET_AND_MOVE_MODULE_REQUEST: /* get module by name and move it */ @@ -627,6 +628,7 @@ void PCB_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event ) break; } + SendMessageToEESCHEMA( module ); DrawPanel->MoveCursorToCrossHair(); StartMove_Module( module, &dc ); break;