fixed bug/assert failure when refreshing items in non report mode

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-08-16 14:29:34 +00:00
parent 5949fba636
commit 6ea1323aa0

View File

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