X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fa7a49ce395b2a84d0c5d405fdb13277402e95f..6d7b547184bfdcdf67790755deb0122050b1d728:/src/mac/carbon/region.cpp?ds=sidebyside diff --git a/src/mac/carbon/region.cpp b/src/mac/carbon/region.cpp index 751177afde..23e905e869 100644 --- a/src/mac/carbon/region.cpp +++ b/src/mac/carbon/region.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// File: region.cpp +// File: src/mac/carbon/region.cpp // Purpose: Region class // Author: Stefan Csomor // Created: Fri Oct 24 10:46:34 MET 1997 @@ -11,7 +11,11 @@ #include "wx/wxprec.h" #include "wx/region.h" -#include "wx/gdicmn.h" + +#ifndef WX_PRECOMP + #include "wx/gdicmn.h" +#endif + #include "wx/mac/uma.h" IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject) @@ -282,7 +286,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 @@ -509,7 +516,7 @@ wxRegionIterator& wxRegionIterator::operator ++ () { if (m_current < m_numRects) ++m_current; - + return *this; } @@ -558,4 +565,3 @@ long wxRegionIterator::GetH() const return 0; } -