Ensure gal is initialized before letting DoRepaint blowup spectacularly.

Maybe a fix for KICAD-6B
This commit is contained in:
Marek Roszko 2023-02-13 07:17:51 -05:00
parent 77421c8fb6
commit 58350b4521
1 changed files with 1 additions and 1 deletions

View File

@ -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;