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:
@@ -3629,12 +3629,10 @@ void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect )
|
|||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
|
||||||
wxRect myRect(0,0,0,0);
|
wxRect myRect(0,0,0,0);
|
||||||
if (m_wxwindow)
|
if (m_wxwindow && rect)
|
||||||
|
{
|
||||||
myRect.SetSize(wxSize( m_wxwindow->allocation.width,
|
myRect.SetSize(wxSize( m_wxwindow->allocation.width,
|
||||||
m_wxwindow->allocation.height));
|
m_wxwindow->allocation.height));
|
||||||
|
|
||||||
if (rect)
|
|
||||||
{
|
|
||||||
myRect.Intersect(*rect);
|
myRect.Intersect(*rect);
|
||||||
if (!myRect.width || !myRect.height)
|
if (!myRect.width || !myRect.height)
|
||||||
// nothing to do, rectangle is empty
|
// nothing to do, rectangle is empty
|
||||||
|
@@ -3629,12 +3629,10 @@ void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect )
|
|||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
|
||||||
wxRect myRect(0,0,0,0);
|
wxRect myRect(0,0,0,0);
|
||||||
if (m_wxwindow)
|
if (m_wxwindow && rect)
|
||||||
|
{
|
||||||
myRect.SetSize(wxSize( m_wxwindow->allocation.width,
|
myRect.SetSize(wxSize( m_wxwindow->allocation.width,
|
||||||
m_wxwindow->allocation.height));
|
m_wxwindow->allocation.height));
|
||||||
|
|
||||||
if (rect)
|
|
||||||
{
|
|
||||||
myRect.Intersect(*rect);
|
myRect.Intersect(*rect);
|
||||||
if (!myRect.width || !myRect.height)
|
if (!myRect.width || !myRect.height)
|
||||||
// nothing to do, rectangle is empty
|
// nothing to do, rectangle is empty
|
||||||
|
Reference in New Issue
Block a user