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
This commit is contained in:
Vadim Zeitlin
2006-04-16 01:10:28 +00:00
parent cf76cd4eba
commit 6fb683081c

View File

@@ -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();