From: Stefan Csomor Date: Thu, 9 Feb 2006 15:16:21 +0000 (+0000) Subject: guard against empty ref X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/54a6974c51b533d398bfc13f06cf5e26f13866c1 guard against empty ref git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/region.cpp b/src/mac/carbon/region.cpp index 751177afde..b20a78b000 100644 --- a/src/mac/carbon/region.cpp +++ b/src/mac/carbon/region.cpp @@ -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