From 54a6974c51b533d398bfc13f06cf5e26f13866c1 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 9 Feb 2006 15:16:21 +0000 Subject: [PATCH] guard against empty ref git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/region.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.50.0