[ 1803350 ] Wrong top-level window positioning on scrolled window

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-09-27 20:29:59 +00:00
parent 6cfb0d7d5f
commit 6d330872cb

View File

@@ -2880,7 +2880,7 @@ void wxWindowGTK::DoGetPosition( int *x, int *y ) const
int dx = 0; int dx = 0;
int dy = 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); GtkPizza *pizza = GTK_PIZZA(m_parent->m_wxwindow);
dx = gtk_pizza_get_xoffset( pizza ); dx = gtk_pizza_get_xoffset( pizza );