libedit: Call OnModify after a pin has been moved

Library Editor updates its working copy of the edited part every time
it is modified. If LIB_EDIT_FRAME::PlacePin() calls OnModify() too early,
the working copy does not include the last change.
This commit is contained in:
Maciej Suminski
2017-11-21 23:18:55 +01:00
parent 95754632c2
commit 50dc0ffd9d
+1 -1
View File
@@ -286,7 +286,6 @@ void LIB_EDIT_FRAME::PlacePin()
SaveCopyInUndoList( part );
m_canvas->SetMouseCapture( NULL, NULL );
OnModify();
cur_pin->Move( newpos );
if( cur_pin->IsNew() )
@@ -314,6 +313,7 @@ void LIB_EDIT_FRAME::PlacePin()
m_drawItem = NULL;
OnModify();
m_canvas->Refresh();
}