]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
have wxbuiltin wxmbconvutf7 return -1 (error) not 0. Some cleanups in string.cpp...
[wxWidgets.git] / src / common / wincmn.cpp
index 115b91a2c6fe22528444aaa80b4710cfe5fb4a4d..690233bc75012eb6020a45fb464b65f10c2f22d6 100644 (file)
@@ -2210,7 +2210,7 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event )
 #else
                                       "",
 #endif
-#if __WXDEBUG__
+#ifdef __WXDEBUG__
                                       _T(" Debug build"),
 #else
                                       _T(""),
@@ -2460,6 +2460,11 @@ void wxWindowBase::DoMoveInTabOrder(wxWindow *win, MoveKind move)
     wxCHECK_RET( GetParent(),
                     _T("MoveBefore/AfterInTabOrder() don't work for TLWs!") );
 
+    // detect the special case when we have nothing to do anyhow and when the
+    // code below wouldn't work
+    if ( win == this )
+        return;
+
     // find the target window in the siblings list
     wxWindowList& siblings = GetParent()->GetChildren();
     wxWindowList::compatibility_iterator i = siblings.Find(win);