]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
added gettext plural forms support (patch #785660 with modifications)
[wxWidgets.git] / src / generic / listctrl.cpp
index 19808a23fd7f600d51c54762733d83e62670ce7b..fc72c9ee07dd6185b2e399b348a3a37f28978d7b 100644 (file)
@@ -4602,8 +4602,8 @@ void wxGenericListCtrl::CalculateAndSetHeaderHeight()
         m_headerWin->GetTextExtent(wxT("Hg"), &w, &h, &d);
         h += d + 2 * HEADER_OFFSET_Y + EXTRA_HEIGHT;
 
         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;
 
         {
             m_headerHeight = h;