Pcbnew: add send msg to Eeschema when move module
This commit is contained in:
parent
e21ebb7282
commit
14c1486062
|
@ -606,9 +606,10 @@ void PCB_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
GetScreen()->SetCrossHairPosition( ((MODULE*) GetCurItem())->m_Pos );
|
SendMessageToEESCHEMA( module );
|
||||||
|
GetScreen()->SetCrossHairPosition( module->m_Pos );
|
||||||
DrawPanel->MoveCursorToCrossHair();
|
DrawPanel->MoveCursorToCrossHair();
|
||||||
StartMove_Module( (MODULE*) GetCurItem(), &dc );
|
StartMove_Module( module, &dc );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ID_POPUP_PCB_GET_AND_MOVE_MODULE_REQUEST: /* get module by name and move it */
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SendMessageToEESCHEMA( module );
|
||||||
DrawPanel->MoveCursorToCrossHair();
|
DrawPanel->MoveCursorToCrossHair();
|
||||||
StartMove_Module( module, &dc );
|
StartMove_Module( module, &dc );
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue