From d4ca60e8a6cb48ef579e0ccdd62d6a15698748d3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 17 Oct 2006 19:51:16 +0000 Subject: [PATCH] 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 --- src/gtk/toplevel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2