]> git.saurik.com Git - wxWidgets.git/commitdiff
another compilation fix for after last check in
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 6 Jul 2004 18:26:08 +0000 (18:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 6 Jul 2004 18:26:08 +0000 (18:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 6d6c0342174a0f1b58403311470cc2c4a7f05ee2..8f7143f57a8b1b29d32a8683fdceefb9ac4ad5c5 100644 (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);
     }