Refresh items which may have had their dangling state changed.

While it's tempting to look at the changed flag that TestDanglingEnds
returns, it's insuficient as the connectivity algorithm might have
already updated it (and ignored the changed flag).

Fixes: lp:1835107
* https://bugs.launchpad.net/kicad/+bug/1835107
This commit is contained in:
Jeff Young 2019-08-21 15:02:16 +01:00
parent cc93d82025
commit bbe5146bbb
1 changed files with 3 additions and 0 deletions

View File

@ -1028,6 +1028,9 @@ void SCH_EDIT_FRAME::AddItemToScreenAndUndoList( SCH_ITEM* aItem, bool aUndoAppe
}
TestDanglingEnds();
for( SCH_ITEM* item : aItem->ConnectedItems() )
RefreshItem( item );
}
GetCanvas()->Refresh();