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:
@@ -274,6 +274,8 @@ wxRegionGeneric::wxRegionGeneric(const wxPoint& topLeft, const wxPoint& bottomRi
|
|||||||
void wxRegionGeneric::Clear()
|
void wxRegionGeneric::Clear()
|
||||||
{
|
{
|
||||||
UnRef();
|
UnRef();
|
||||||
|
if (!m_refData)
|
||||||
|
m_refData = new wxRegionRefData(wxRect(0,0,0,0));
|
||||||
}
|
}
|
||||||
|
|
||||||
wxGDIRefData *wxRegionGeneric::CreateGDIRefData() const
|
wxGDIRefData *wxRegionGeneric::CreateGDIRefData() const
|
||||||
|
|||||||
Reference in New Issue
Block a user