From c020c47e003c6b3ed7924fd58d6b4bd5f5de8158 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 3 Jul 2002 15:05:43 +0000 Subject: [PATCH] fixed off-by-few-pixels error in horz scrollbar calculations (patch 575412) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 22cf70aa38..4b8019f034 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3976,7 +3976,7 @@ void wxListMainWindow::RecalculatePositions(bool noRefresh) ResetVisibleLinesRange(); SetScrollbars( m_xScroll, m_yScroll, - (GetHeaderWidth() + m_xScroll - 1)/m_xScroll, + GetHeaderWidth() / m_xScroll, (entireHeight + m_yScroll - 1)/m_yScroll, GetScrollPos(wxHORIZONTAL), GetScrollPos(wxVERTICAL), -- 2.45.2