Delay refresh until initialized

on_idle can be called too early on wxGtk3/X11.
Check for m_initialized before refreshing.
This commit is contained in:
Yuri D'Elia 2019-05-18 14:52:29 +02:00
parent b234a1b7a7
commit 89ff5d03eb

View File

@ -2292,6 +2292,9 @@ void GLCanvas3D::on_size(wxSizeEvent& evt)
void GLCanvas3D::on_idle(wxIdleEvent& evt)
{
if (!m_initialized)
return;
m_dirty |= m_toolbar.update_items_state();
m_dirty |= m_view_toolbar.update_items_state();