From: Vadim Zeitlin Date: Tue, 6 Jul 2004 18:26:08 +0000 (+0000) Subject: another compilation fix for after last check in X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9e9300c4576acb09a9fca823330fb48529c629d0 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 --- diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 6d6c034217..8f7143f57a 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -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); }