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

This commit is contained in:
charras 2009-03-14 16:26:49 +00:00
parent e5390617cd
commit 85ffff8892
1 changed files with 8 additions and 2 deletions

View File

@ -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: