diff --git a/common/draw_panel_gal.cpp b/common/draw_panel_gal.cpp index fd48d83b7d..ebc981d844 100644 --- a/common/draw_panel_gal.cpp +++ b/common/draw_panel_gal.cpp @@ -155,9 +155,6 @@ void EDA_DRAW_PANEL_GAL::SetFocus() void EDA_DRAW_PANEL_GAL::onPaint( wxPaintEvent& WXUNUSED( aEvent ) ) { - // This is required even though dc is not used otherwise. - wxPaintDC dc(this); - m_pendingRefresh = false; if( m_drawing )