X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70541533c8e108249a82fbe2bc05ccfb73bf028d..211cc8dc907ee50ca6d383b8df16bba9a4d3ce2d:/src/generic/listctrl.cpp?ds=sidebyside diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 5609fdd997..2744044c86 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2418,11 +2418,14 @@ bool wxListMainWindow::HighlightLine( size_t line, bool highlight ) void wxListMainWindow::RefreshLine( size_t line ) { - size_t visibleFrom, visibleTo; - GetVisibleLinesRange(&visibleFrom, &visibleTo); + if ( HasFlag(wxLC_REPORT) ) + { + size_t visibleFrom, visibleTo; + GetVisibleLinesRange(&visibleFrom, &visibleTo); - if ( line < visibleFrom || line > visibleTo ) - return; + if ( line < visibleFrom || line > visibleTo ) + return; + } wxRect rect = GetLineRect(line);