Ensure gal is initialized before letting DoRepaint blowup spectacularly.
Maybe a fix for KICAD-6B
This commit is contained in:
parent
77421c8fb6
commit
58350b4521
|
@ -212,7 +212,7 @@ void EDA_DRAW_PANEL_GAL::DoRePaint()
|
|||
if( !m_drawingEnabled )
|
||||
return;
|
||||
|
||||
if( !m_gal->IsVisible() )
|
||||
if( !m_gal->IsInitialized() || !m_gal->IsVisible() )
|
||||
return;
|
||||
|
||||
m_pendingRefresh = false;
|
||||
|
|
Loading…
Reference in New Issue