guard against empty ref

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2006-02-09 15:16:21 +00:00
parent a395a6243e
commit 54a6974c51

View File

@@ -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