From 29f3b96f83c752e821b3c8bfab503f7ffc44dbf1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 6 Jun 2000 13:22:51 +0000 Subject: [PATCH] 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 --- src/common/list.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/list.cpp b/src/common/list.cpp index 971dca379c..9bbe3d99a0 100644 --- a/src/common/list.cpp +++ b/src/common/list.cpp @@ -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()