Restore original behaviour if m_wxwindow == NULL.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2003-06-09 18:21:41 +00:00
parent d4d283bf1b
commit 600afbe5da
2 changed files with 4 additions and 8 deletions

View File

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

View File

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