]> git.saurik.com Git - wxWidgets.git/commitdiff
couple of typo/thinko bug fixes
authorRon Lee <ron@debian.org>
Sun, 5 Mar 2000 19:18:31 +0000 (19:18 +0000)
committerRon Lee <ron@debian.org>
Sun, 5 Mar 2000 19:18:31 +0000 (19:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/region.cpp
src/gtk1/region.cpp

index 8af2c03eee82a6c71b5e5076508cf1b988eefc8e..0332bd48b6b948c98ffb72cf36ca92ab602d277d 100644 (file)
@@ -293,7 +293,7 @@ bool wxRegion::Xor( const wxRect& rect )
 bool wxRegion::Xor( const wxRegion& region )
 {
     if (region.IsNull())
-        return NULL;
+        return FALSE;
 
     if (!m_refData)
     {
@@ -322,7 +322,7 @@ void wxRegion::GetBox( wxCoord &x, wxCoord &y, wxCoord &w, wxCoord &h ) const
     y = 0;
     w = -1;
     h = -1;
-    if (m_refData)
+    if (!m_refData)
         return;
 
     GdkRectangle rect;
index 8af2c03eee82a6c71b5e5076508cf1b988eefc8e..0332bd48b6b948c98ffb72cf36ca92ab602d277d 100644 (file)
@@ -293,7 +293,7 @@ bool wxRegion::Xor( const wxRect& rect )
 bool wxRegion::Xor( const wxRegion& region )
 {
     if (region.IsNull())
-        return NULL;
+        return FALSE;
 
     if (!m_refData)
     {
@@ -322,7 +322,7 @@ void wxRegion::GetBox( wxCoord &x, wxCoord &y, wxCoord &w, wxCoord &h ) const
     y = 0;
     w = -1;
     h = -1;
-    if (m_refData)
+    if (!m_refData)
         return;
 
     GdkRectangle rect;