Prevent VIEW::UpdateItems and onShowTimer from firing repaints if GAL did not complete init
This appears to be a possible event race on startup Fixes sentry KICAD-10A
This commit is contained in:
parent
37eaa29679
commit
bfad8bb0d5
|
@ -628,7 +628,7 @@ void EDA_DRAW_PANEL_GAL::onRefreshTimer( wxTimerEvent& aEvent )
|
|||
|
||||
void EDA_DRAW_PANEL_GAL::onShowTimer( wxTimerEvent& aEvent )
|
||||
{
|
||||
if( m_gal && m_gal->IsVisible() )
|
||||
if( m_gal && m_gal->IsInitialized() && m_gal->IsVisible() )
|
||||
{
|
||||
m_onShowTimer.Stop();
|
||||
OnShow();
|
||||
|
|
|
@ -1420,7 +1420,7 @@ void VIEW::RecacheAllItems()
|
|||
|
||||
void VIEW::UpdateItems()
|
||||
{
|
||||
if( !m_gal->IsVisible() )
|
||||
if( !m_gal->IsVisible() || !m_gal->IsInitialized() )
|
||||
return;
|
||||
|
||||
unsigned int cntGeomUpdate = 0;
|
||||
|
|
Loading…
Reference in New Issue