]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use wxWindows::DoGetClientSize() from
authorRobert Roebling <robert@roebling.de>
Sat, 2 Sep 2006 22:21:19 +0000 (22:21 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 2 Sep 2006 22:21:19 +0000 (22:21 +0000)
    wxTopLevelWindow as border with should not
    be taken into account here.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp

index 68efed2a0841b4bfe2264bf238a824fe4ce5f307..3ee1c1efe072e3e0ca6717ea4a9aa036893cb2c2 100644 (file)
@@ -913,16 +913,20 @@ void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
 {
     wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") );
 
-    wxWindow::DoGetClientSize( width, height );
     if (height)
     {
+        *height = m_height;
+    
         // mini edge
         *height -= m_miniEdge*2 + m_miniTitle;
     }
     if (width)
     {
+        *width = m_width;
+    
         *width -= m_miniEdge*2;
     }
+    
 }
 
 void wxTopLevelWindowGTK::DoSetClientSize( int width, int height )