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:
parent
b234a1b7a7
commit
89ff5d03eb
@ -2292,6 +2292,9 @@ void GLCanvas3D::on_size(wxSizeEvent& evt)
|
|||||||
|
|
||||||
void GLCanvas3D::on_idle(wxIdleEvent& evt)
|
void GLCanvas3D::on_idle(wxIdleEvent& evt)
|
||||||
{
|
{
|
||||||
|
if (!m_initialized)
|
||||||
|
return;
|
||||||
|
|
||||||
m_dirty |= m_toolbar.update_items_state();
|
m_dirty |= m_toolbar.update_items_state();
|
||||||
m_dirty |= m_view_toolbar.update_items_state();
|
m_dirty |= m_view_toolbar.update_items_state();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user