serious bug in wxListBase::DoCopy() fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-06-06 13:22:51 +00:00
parent f75f6530b0
commit 29f3b96f83

View File

@@ -165,7 +165,6 @@ void wxListBase::DoCopy(const wxListBase& list)
wxASSERT_MSG( !list.m_destroy,
wxT("copying list which owns it's elements is a bad idea") );
m_count = list.m_count;
m_destroy = list.m_destroy;
m_keyType = list.m_keyType;
m_nodeFirst =
@@ -204,6 +203,8 @@ void wxListBase::DoCopy(const wxListBase& list)
break;
}
}
wxASSERT_MSG( m_count = list.m_count, _T("logic error in wxList::DoCopy") );
}
wxListBase::~wxListBase()