From ae1d0c6c46e9e05682276d34c95879f5efbf41bd Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 26 Jan 2002 01:33:47 +0000 Subject: [PATCH] fixed bug in wxGrid dimensions calculation (Staffan Ulfberg) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 6387d6e676..2471fc0090 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -3904,9 +3904,9 @@ void wxGrid::CalcDimensions() int cw, ch; GetClientSize( &cw, &ch ); - if ( m_colLabelWin->IsShown() ) - cw -= m_rowLabelWidth; if ( m_rowLabelWin->IsShown() ) + cw -= m_rowLabelWidth; + if ( m_colLabelWin->IsShown() ) ch -= m_colLabelHeight; // grid total size -- 2.47.2