From bbe5146bbb1c0db9279dfe849578683c1651087f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 21 Aug 2019 15:02:16 +0100 Subject: [PATCH] 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 --- eeschema/sch_edit_frame.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index 4e1e2fa16a..2e4eb9fe88 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -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();