]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/xti.h
added accessor function to hide __VISAGECPP__ ugliness and avoid having #ifdef's...
[wxWidgets.git] / include / wx / xti.h
index 3bf18e703d8727b2ccf6ebd451a72890bc795b2a..2eb3e35e22585cd1a71464f0697dbbe3c1d58ee1 100644 (file)
@@ -668,7 +668,8 @@ public :
 
     wxxVariant& operator=(const wxxVariant &d)
     {
-        m_data = d.m_data->Clone() ;
+        delete m_data;
+        m_data = d.m_data ? d.m_data->Clone() : NULL ;
         m_name = d.m_name ;
         return *this ;
     }