Pcbnew: add send msg to Eeschema when move module

This commit is contained in:
Andrey Fedorushkov 2011-10-24 19:23:06 +04:00
parent e21ebb7282
commit 14c1486062
1 changed files with 4 additions and 2 deletions

View File

@ -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;