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
This commit is contained in:
Jeff Young 2018-10-18 14:12:47 +01:00
parent bdc64ff0b3
commit c06e533689
1 changed files with 3 additions and 0 deletions

View File

@ -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<SCH_SCREEN*>( GetScreen() )->UpdateSymbolLinks();
if( m_painter )
static_cast<KIGFX::SCH_PAINTER*>(m_painter.get())->GetSettings()->ImportLegacyColors( nullptr );