Fixed runtime error on Linux when removing canvases
This commit is contained in:
parent
8192580b5f
commit
66b4620d9b
@ -1871,7 +1871,6 @@ void GLCanvas3D::unbind_event_handlers()
|
|||||||
{
|
{
|
||||||
if (m_canvas != nullptr)
|
if (m_canvas != nullptr)
|
||||||
{
|
{
|
||||||
m_canvas->GetEventHandler()->ProcessPendingEvents();
|
|
||||||
m_canvas->Unbind(wxEVT_SIZE, &GLCanvas3D::on_size, this);
|
m_canvas->Unbind(wxEVT_SIZE, &GLCanvas3D::on_size, this);
|
||||||
m_canvas->Unbind(wxEVT_IDLE, &GLCanvas3D::on_idle, this);
|
m_canvas->Unbind(wxEVT_IDLE, &GLCanvas3D::on_idle, this);
|
||||||
m_canvas->Unbind(wxEVT_CHAR, &GLCanvas3D::on_char, this);
|
m_canvas->Unbind(wxEVT_CHAR, &GLCanvas3D::on_char, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user