Commit 85ffff88 authored by charras's avatar charras

Fixed all: redraw screen (F3 key) not working under Linux (seems a wxGTK problem)

parent e5390617
...@@ -98,8 +98,12 @@ void WinEDA_DrawFrame::Window_Zoom( EDA_Rect& Rect ) ...@@ -98,8 +98,12 @@ void WinEDA_DrawFrame::Window_Zoom( EDA_Rect& Rect )
} }
/*****************************************************************/ /******************************************************/
void WinEDA_DrawFrame::OnZoom( wxCommandEvent& event ) void WinEDA_DrawFrame::OnZoom( wxCommandEvent& event )
/******************************************************/
/** Function OnZoom(
* Called from any zoom event (toolbar , hotkey or popup )
*/
{ {
if( DrawPanel == NULL ) if( DrawPanel == NULL )
{ {
...@@ -138,7 +142,9 @@ void WinEDA_DrawFrame::OnZoom( wxCommandEvent& event ) ...@@ -138,7 +142,9 @@ void WinEDA_DrawFrame::OnZoom( wxCommandEvent& event )
break; break;
case ID_ZOOM_REDRAW: case ID_ZOOM_REDRAW:
DrawPanel->Refresh(); // DrawPanel->Refresh(); usually good,
// but does not work under linux, when called from here (wxGTK bug ?)
ReDrawPanel();
break; break;
case ID_POPUP_ZOOM_CENTER: case ID_POPUP_ZOOM_CENTER:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment