another compilation fix for after last check in

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-07-06 18:26:08 +00:00
parent ff0a9f8d18
commit 9e9300c457

View File

@@ -2439,7 +2439,12 @@ void wxWindowBase::DoMoveInTabOrder(wxWindow *win, MoveKind move)
// 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);
}