diff --git a/src/common/rearrangectrl.cpp b/src/common/rearrangectrl.cpp index 75170d35dc..ef917518f1 100644 --- a/src/common/rearrangectrl.cpp +++ b/src/common/rearrangectrl.cpp @@ -70,7 +70,6 @@ bool wxRearrangeList::Create(wxWindow *parent, } // do create the real control - m_order.reserve(count); if ( !wxCheckListBox::Create(parent, id, pos, size, itemsInOrder, style, validator, name) ) return false; @@ -84,9 +83,10 @@ bool wxRearrangeList::Create(wxWindow *parent, // which would also update m_order itself. wxCheckListBox::Check(n); } - m_order[n] = order[n]; } + m_order = order; + return true; }