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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user