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-14 13:53:06 +01:00
parent 95754632c2
commit 50dc0ffd9d
1 changed files with 1 additions and 1 deletions

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();
}