From 85ffff88924d92a8c7a78566c1d2ed79df86c6f9 Mon Sep 17 00:00:00 2001 From: charras Date: Sat, 14 Mar 2009 16:26:49 +0000 Subject: [PATCH] Fixed all: redraw screen (F3 key) not working under Linux (seems a wxGTK problem) --- common/zoom.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/zoom.cpp b/common/zoom.cpp index 9cf3bab7ff..4940ab1265 100644 --- a/common/zoom.cpp +++ b/common/zoom.cpp @@ -98,8 +98,12 @@ void WinEDA_DrawFrame::Window_Zoom( EDA_Rect& Rect ) } -/*****************************************************************/ +/******************************************************/ void WinEDA_DrawFrame::OnZoom( wxCommandEvent& event ) +/******************************************************/ +/** Function OnZoom( + * Called from any zoom event (toolbar , hotkey or popup ) + */ { if( DrawPanel == NULL ) { @@ -138,7 +142,9 @@ void WinEDA_DrawFrame::OnZoom( wxCommandEvent& event ) break; case ID_ZOOM_REDRAW: - DrawPanel->Refresh(); + // DrawPanel->Refresh(); usually good, + // but does not work under linux, when called from here (wxGTK bug ?) + ReDrawPanel(); break; case ID_POPUP_ZOOM_CENTER: