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:
@@ -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
|
||||
|
Reference in New Issue
Block a user