diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index d91e77c9a0..2035b1d9f3 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -3629,12 +3629,10 @@ void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect ) wxapp_install_idle_handler(); wxRect myRect(0,0,0,0); - if (m_wxwindow) + if (m_wxwindow && rect) + { myRect.SetSize(wxSize( m_wxwindow->allocation.width, m_wxwindow->allocation.height)); - - if (rect) - { myRect.Intersect(*rect); if (!myRect.width || !myRect.height) // nothing to do, rectangle is empty diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index d91e77c9a0..2035b1d9f3 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -3629,12 +3629,10 @@ void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect ) wxapp_install_idle_handler(); wxRect myRect(0,0,0,0); - if (m_wxwindow) + if (m_wxwindow && rect) + { myRect.SetSize(wxSize( m_wxwindow->allocation.width, m_wxwindow->allocation.height)); - - if (rect) - { myRect.Intersect(*rect); if (!myRect.width || !myRect.height) // nothing to do, rectangle is empty