/////////////////////////////////////////////////////////////////////////////
-// File: region.cpp
+// File: src/mac/carbon/region.cpp
// Purpose: Region class
// Author: Stefan Csomor
// Created: Fri Oct 24 10:46:34 MET 1997
#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)
// 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
{
if (m_current < m_numRects)
++m_current;
-
+
return *this;
}
return 0;
}
-