fix operator=() (patch 1126195)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-02-19 16:35:00 +00:00
parent 07d0abae96
commit 8348e2cbf3

View 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 ;
}