X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc76287dcd3e940a68d00b9c425e6b1fe56431d5..849a28d0da2d036a78c7252c2baa42e8aee8a65d:/src/generic/listctrl.cpp 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;