]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid setting initial position if it was not specified, broken in r70734
authorPaul Cornett <paulcor@bullseye.com>
Sun, 18 Aug 2013 16:00:22 +0000 (16:00 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sun, 18 Aug 2013 16:00:22 +0000 (16:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp

index 01a4079d540ae355db1cfac221aefa1de5ebb74e..eec3845ec1e29fedb532f4b8e65e27a647f6cb5a 100644 (file)
@@ -664,7 +664,7 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
     PostCreation();
 
 #ifndef __WXGTK3__
-    if ((m_x != -1) || (m_y != -1))
+    if (pos != wxDefaultPosition)
         gtk_widget_set_uposition( m_widget, m_x, m_y );
 #endif