From c06e53368989a4e0b02412326980c6f69bd47c41 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 18 Oct 2018 14:12:47 +0100 Subject: [PATCH] Add hack to Resolve all symbols when painting. Seems rather expensive, but this is what the Legacy canvas did. In fairness, it does check the last-mod-date of the libraries and skips it if they haven't changed. Fixes: lp:1798446 * https://bugs.launchpad.net/kicad/+bug/1798446 --- eeschema/sch_draw_panel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/sch_draw_panel.cpp b/eeschema/sch_draw_panel.cpp index 53b5cae539..4b36aa4769 100644 --- a/eeschema/sch_draw_panel.cpp +++ b/eeschema/sch_draw_panel.cpp @@ -694,6 +694,9 @@ void SCH_DRAW_PANEL::onPaint( wxPaintEvent& aEvent ) // (depending on platforms). Do nothing in this case return; + // Ensure links are up to date, even if a library was reloaded for some reason: + static_cast( GetScreen() )->UpdateSymbolLinks(); + if( m_painter ) static_cast(m_painter.get())->GetSettings()->ImportLegacyColors( nullptr );