]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/icon.cpp
fixed wxMaximizeEvent generation
[wxWidgets.git] / src / msw / icon.cpp
index 5cab68a51cfa9d354399a005bc43fdac924e5da9..564a07d875f502a670da1c12eb236c2869011640 100644 (file)
@@ -110,8 +110,8 @@ wxObjectRefData *wxIcon::CloneRefData(const wxObjectRefData *dataOrig) const
         return NULL;
 
     wxIcon *self = wx_const_cast(wxIcon *, this);
-    lf->UnRef();
-    lf->m_refData = new wxIconRefData(*data);
+    self->UnRef();
+    self->m_refData = new wxIconRefData(*data);
 
     if ( data->m_hIcon )
     {