]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/toplvcmn.cpp
Somehow (probably in a merge) all the CVS Id: tags got deactivated...
[wxWidgets.git] / src / common / toplvcmn.cpp
index c519fbc7c9005e0c8fdfc28c2a347a2ae1725643..c9a83157763d40141c110784289d035360c0f16f 100644 (file)
@@ -158,8 +158,9 @@ void wxTopLevelWindowBase::DoCentre(int dir)
     wxRect rectCentre;
     if ( !(dir & wxCENTRE_ON_SCREEN) && GetParent() )
     {
-        // centre on parent window
-        rectCentre = GetParent()->GetRect();
+        // centre on parent window: notice that we need screen coordinates for
+        // positioning this TLW
+        rectCentre = GetParent()->GetScreenRect();
     }
     else
     {