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