Don't paint GAL canvas when it isn't shown.
Fixes: lp:1790502 * https://bugs.launchpad.net/kicad/+bug/1790502
This commit is contained in:
parent
c5330ac0bf
commit
8390b7a7ac
|
@ -135,6 +135,7 @@ void SCH_PREVIEW_PANEL::onPaint( wxPaintEvent& aEvent )
|
||||||
if( m_painter )
|
if( m_painter )
|
||||||
static_cast<KIGFX::SCH_PAINTER*>(m_painter.get())->GetSettings()->ImportLegacyColors( nullptr );
|
static_cast<KIGFX::SCH_PAINTER*>(m_painter.get())->GetSettings()->ImportLegacyColors( nullptr );
|
||||||
|
|
||||||
|
if( IsShown() )
|
||||||
EDA_DRAW_PANEL_GAL::onPaint( aEvent );
|
EDA_DRAW_PANEL_GAL::onPaint( aEvent );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue