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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user