diff --git a/common/draw_panel_gal.cpp b/common/draw_panel_gal.cpp index c626dc9569..936a5bcf01 100644 --- a/common/draw_panel_gal.cpp +++ b/common/draw_panel_gal.cpp @@ -439,6 +439,8 @@ void EDA_DRAW_PANEL_GAL::StopDrawing() m_refreshTimer.Stop(); m_drawingEnabled = false; + Disconnect( wxEVT_SHOW, wxShowEventHandler( EDA_DRAW_PANEL_GAL::onShowEvent ), nullptr, this ); + Disconnect( wxEVT_PAINT, wxPaintEventHandler( EDA_DRAW_PANEL_GAL::onPaint ), nullptr, this ); Disconnect( wxEVT_IDLE, wxIdleEventHandler( EDA_DRAW_PANEL_GAL::onIdle ), nullptr, this );