Stop crash/asserts caused when Clear() deletes the wxRegionRefData.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2f2635175a
commit
c6f2bde160
@ -274,6 +274,8 @@ wxRegionGeneric::wxRegionGeneric(const wxPoint& topLeft, const wxPoint& bottomRi
|
||||
void wxRegionGeneric::Clear()
|
||||
{
|
||||
UnRef();
|
||||
if (!m_refData)
|
||||
m_refData = new wxRegionRefData(wxRect(0,0,0,0));
|
||||
}
|
||||
|
||||
wxGDIRefData *wxRegionGeneric::CreateGDIRefData() const
|
||||
|
Loading…
Reference in New Issue
Block a user