From 8eca8095e4e118a1a7b270c666226d176c66528f Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 2 Oct 2002 14:03:43 +0000 Subject: [PATCH] Applied patch [ 617262 ] ListCtrl ResetVisibleLinesRange missing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 40cf73afd0..7776a1a1ed 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4420,7 +4420,10 @@ void wxListMainWindow::InsertItem( wxListItem &item ) int mode = 0; if ( HasFlag(wxLC_REPORT) ) + { mode = wxLC_REPORT; + ResetVisibleLinesRange(); + } else if ( HasFlag(wxLC_LIST) ) mode = wxLC_LIST; else if ( HasFlag(wxLC_ICON) )