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:
parent
95754632c2
commit
50dc0ffd9d
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue