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:
Jeff Young 2018-12-27 18:41:14 +00:00
parent 4d9b4428fa
commit 72a1052bb9
1 changed files with 2 additions and 7 deletions

View File

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