git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28178
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// can't just move the node around
wxWindow *self = (wxWindow *)this;
siblings.DeleteObject(self);
// can't just move the node around
wxWindow *self = (wxWindow *)this;
siblings.DeleteObject(self);
- if ( move == MoveBefore || ((i = i->GetNext()) != siblings.end()) )
+ if ( move == MoveAfter )
+ {
+ i = i->GetNext();
+ }
+
+ if ( i )
{
siblings.Insert(i, self);
}
{
siblings.Insert(i, self);
}