X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b390729ff9f8cdffa27bf69cedc721663ef4685c..0f5378d414cb68caaa535199c1af12dec1720c3d:/src/common/rearrangectrl.cpp?ds=sidebyside diff --git a/src/common/rearrangectrl.cpp b/src/common/rearrangectrl.cpp index c9a27121cb..2e0ba1bcc6 100644 --- a/src/common/rearrangectrl.cpp +++ b/src/common/rearrangectrl.cpp @@ -134,11 +134,11 @@ void wxRearrangeList::Swap(int pos1, int pos2) // first the label const wxString stringTmp = GetString(pos1); SetString(pos1, GetString(pos2)); - Check(pos1, IsChecked(pos2)); + SetString(pos2, stringTmp); // then the checked state const bool checkedTmp = IsChecked(pos1); - SetString(pos2, stringTmp); + Check(pos1, IsChecked(pos2)); Check(pos2, checkedTmp); // and finally the client data, if necessary