Commit 14c14860 authored by Andrey Fedorushkov's avatar Andrey Fedorushkov

Pcbnew: add send msg to Eeschema when move module

parent e21ebb72
......@@ -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;
......
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