From: Vadim Zeitlin Date: Sun, 16 Apr 2006 01:10:28 +0000 (+0000) Subject: removed unnecessary (the problem is due to a bug elsewhere) test for vertical scroll... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6fb683081c372fb4a9caaa4710ecafc12dd02c3d removed unnecessary (the problem is due to a bug elsewhere) test for vertical scroll position in OnScroll() introduced in rev 1.400 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index a461b1dca0..6e1707802a 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4612,13 +4612,6 @@ void wxListMainWindow::SortItems( wxListCtrlCompare fn, long data ) void wxListMainWindow::OnScroll(wxScrollWinEvent& event) { - int cw, ch, vw, vh; - GetVirtualSize(&vw, &vh); - GetClientSize(&cw, &ch); - - if ( event.GetOrientation() == wxVERTICAL && ch >= vh ) - return; - // update our idea of which lines are shown when we redraw the window the // next time ResetVisibleLinesRange();