From: Vadim Zeitlin Date: Sat, 9 Mar 2002 21:55:03 +0000 (+0000) Subject: copy the variant name in the assignment operator as well! X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3d8daa0fb9c617c1f1fc52ebde2a2bf0bbd0951c?ds=sidebyside copy the variant name in the assignment operator as well! git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/variant.cpp b/src/common/variant.cpp index 859f722a79..894c1cf9aa 100644 --- a/src/common/variant.cpp +++ b/src/common/variant.cpp @@ -1436,8 +1436,10 @@ void wxVariant::operator= (const wxVariant& variant) delete m_data; m_data = (wxVariantData*) variant.GetData()->GetClassInfo()->CreateObject(); } -// GetData()->Copy(* variant.GetData()); + variant.GetData()->Copy(* GetData()); + + m_name = variant.m_name; } // Assignment using data, e.g.