]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/regiong.cpp
use native conversions that are close to the native storage of wxString
[wxWidgets.git] / src / generic / regiong.cpp
index 9511c83df2fb8c8dca41a8c52895676503dbc76e..d9ee1d95dea5c6d9a6a5e0c3678551eacfe634f6 100644 (file)
@@ -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