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
This commit is contained in:
Robin Dunn
2006-10-17 19:51:16 +00:00
parent fd39f7a893
commit d4ca60e8a6

View 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;
}