From 66b4620d9b79293c0e3a29df36b02735be93e977 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Wed, 6 Jun 2018 14:33:04 +0200 Subject: [PATCH] Fixed runtime error on Linux when removing canvases --- xs/src/slic3r/GUI/GLCanvas3D.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/xs/src/slic3r/GUI/GLCanvas3D.cpp b/xs/src/slic3r/GUI/GLCanvas3D.cpp index 41741eef82..bb5db86147 100644 --- a/xs/src/slic3r/GUI/GLCanvas3D.cpp +++ b/xs/src/slic3r/GUI/GLCanvas3D.cpp @@ -1871,7 +1871,6 @@ void GLCanvas3D::unbind_event_handlers() { if (m_canvas != nullptr) { - m_canvas->GetEventHandler()->ProcessPendingEvents(); m_canvas->Unbind(wxEVT_SIZE, &GLCanvas3D::on_size, this); m_canvas->Unbind(wxEVT_IDLE, &GLCanvas3D::on_idle, this); m_canvas->Unbind(wxEVT_CHAR, &GLCanvas3D::on_char, this);