From: Robin Dunn Date: Tue, 17 Oct 2006 19:51:16 +0000 (+0000) Subject: Need to subtract the m_miniTitle to get client size, not add it. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d4ca60e8a6cb48ef579e0ccdd62d6a15698748d3 Need to subtract the m_miniTitle to get client size, not add it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 8a294525a4..3f8b6b74ed 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -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; }