diff --git a/common/draw_panel_gal.cpp b/common/draw_panel_gal.cpp index e0fe05c408..72e4a7ab51 100644 --- a/common/draw_panel_gal.cpp +++ b/common/draw_panel_gal.cpp @@ -295,7 +295,9 @@ void EDA_DRAW_PANEL_GAL::Refresh( bool aEraseBackground, const wxRect* aRect ) // This ensures that we will render often enough but not too often. if( delta >= MinRefreshPeriod ) { - ForceRefresh(); + if( !m_pendingRefresh ) + ForceRefresh(); + m_refreshTimer.Start( MinRefreshPeriod, true ); } else if( !m_refreshTimer.IsRunning() ) @@ -309,6 +311,7 @@ void EDA_DRAW_PANEL_GAL::ForceRefresh() { //wxPaintEvent redrawEvent; //wxPostEvent( this, redrawEvent ); + m_pendingRefresh = true; DoRePaint(); }