]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1803350 ] Wrong top-level window positioning on scrolled window
authorRobert Roebling <robert@roebling.de>
Thu, 27 Sep 2007 20:21:52 +0000 (20:21 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 27 Sep 2007 20:21:52 +0000 (20:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index b7e49281e122b3251b5b181343ec0fbfc6f9eab3..eb36d67c61930c4f0919275393d07a9d185ef585 100644 (file)
@@ -2898,7 +2898,7 @@ void wxWindowGTK::DoGetPosition( int *x, int *y ) const
 
     int dx = 0;
     int dy = 0;
-    if (m_parent && m_parent->m_wxwindow)
+    if (!IsTopLevel() && m_parent && m_parent->m_wxwindow)
     {
         GtkPizza *pizza = GTK_PIZZA(m_parent->m_wxwindow);
         dx = gtk_pizza_get_xoffset( pizza );