From 8b1ed8d979f193aa78b74c7d7a4a4ac33e50c121 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 26 Sep 2003 23:47:28 +0000 Subject: [PATCH] update height of the header window whenever it changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 19808a23fd..fc72c9ee07 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4602,8 +4602,8 @@ void wxGenericListCtrl::CalculateAndSetHeaderHeight() m_headerWin->GetTextExtent(wxT("Hg"), &w, &h, &d); h += d + 2 * HEADER_OFFSET_Y + EXTRA_HEIGHT; - // only update if there is not enough space - if ( h > m_headerHeight ) + // only update if changed + if ( h != m_headerHeight ) { m_headerHeight = h; -- 2.45.2