X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fa7a49ce395b2a84d0c5d405fdb13277402e95f..344ff08345eba81fcdcc55dd711ce6bc4bb747a3:/src/mac/carbon/region.cpp 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