Make sure parents get redrawn to refresh module text items.
Fixes: lp:1809912 * https://bugs.launchpad.net/kicad/+bug/1809912
This commit is contained in:
parent
4d9b4428fa
commit
72a1052bb9
|
@ -741,16 +741,11 @@ static void abortMoveItem( EDA_DRAW_PANEL* aPanel, wxDC* aDC )
|
|||
// Never delete existing item, because it can be referenced by an undo/redo command
|
||||
// Just restore its data
|
||||
|
||||
view->Remove( item );
|
||||
view->Remove( currentItem );
|
||||
currentItem->SwapData( oldItem );
|
||||
item->ClearFlags();
|
||||
view->Add( item );
|
||||
view->Add( currentItem );
|
||||
view->Hide( item, false );
|
||||
|
||||
// for items managed by their parent, we have to refresh
|
||||
// the parent drawings (scheet or symbol)
|
||||
if( currentItem != item )
|
||||
parent->RefreshItem( currentItem );
|
||||
}
|
||||
|
||||
screen->TestDanglingEnds();
|
||||
|
|
Loading…
Reference in New Issue