]> git.saurik.com Git - wxWidgets.git/commitdiff
Need to subtract the m_miniTitle to get client size, not add it.
authorRobin Dunn <robin@alldunn.com>
Tue, 17 Oct 2006 19:51:16 +0000 (19:51 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 17 Oct 2006 19:51:16 +0000 (19:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/toplevel.cpp

index 8a294525a439e3e429aee4312096567dbb27b53d..3f8b6b74edaaa58034f3f2183fb62f60b66c9091 100644 (file)
@@ -919,7 +919,7 @@ void wxTopLevelWindowGTK::DoGetClientSize( int *width, int *height ) const
 
     if (height)
     {
-        *height = m_height - 2 * m_miniEdge + m_miniTitle;
+        *height = m_height - 2 * m_miniEdge - m_miniTitle;
         if (*height < 0)
             *height = 0;
     }