]> git.saurik.com Git - wxWidgets.git/commitdiff
fix reversed left/top variables
authorPaul Cornett <paulcor@bullseye.com>
Thu, 21 Jun 2007 03:43:01 +0000 (03:43 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 21 Jun 2007 03:43:01 +0000 (03:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/button.cpp
src/gtk/window.cpp

index 71cfd13497ebfef4fb844f29eb60f05218b2e236..61e1ad1396012e6518706b3cdcc64ef039aad0cf 100644 (file)
@@ -74,8 +74,8 @@ gtk_button_style_set_callback( GtkWidget *m_widget, GtkStyle *WXUNUSED(style), w
             gtk_border_free( default_border );
         }
         win->MoveWindow(
-            win->m_x - top_border,
-            win->m_y - left_border,
+            win->m_x - left_border,
+            win->m_y - top_border,
             win->m_width + left_border + right_border,
             win->m_height + top_border + bottom_border);
     }
index 5ccb0226705b6b531e0d3edbf852f65f0e87e9f8..d953a3e68bb99458ae5766fe56205db6882fbe59 100644 (file)
@@ -2742,8 +2742,8 @@ void wxWindowGTK::DoSetSize( int x, int y, int width, int height, int sizeFlags
             }
         }
 
-        DoMoveWindow( m_x-top_border,
-                      m_y-left_border,
+        DoMoveWindow( m_x - left_border,
+                      m_y - top_border,
                       m_width+left_border+right_border,
                       m_height+top_border+bottom_border );
     }