]> git.saurik.com Git - wxWidgets.git/commitdiff
guard against empty ref
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 9 Feb 2006 15:16:21 +0000 (15:16 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 9 Feb 2006 15:16:21 +0000 (15:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/region.cpp

index 751177afdef0a6d7431932822bc2a1bb70c603d0..b20a78b000cd46b2233b330a94f376a9586d71d5 100644 (file)
@@ -282,7 +282,10 @@ wxRect wxRegion::GetBox() const
 // Is region empty?
 bool wxRegion::Empty() const
 {
-    return EmptyRgn( M_REGION ) ;
+    if ( m_refData )
+        return EmptyRgn( M_REGION ) ;
+    else
+        return true ;
 }
 
 const WXHRGN wxRegion::GetWXHRGN() const