projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5949fba
)
fixed bug/assert failure when refreshing items in non report mode
author
Vadim Zeitlin
<vadim@wxwidgets.org>
Thu, 16 Aug 2001 14:29:34 +0000
(14:29 +0000)
committer
Vadim Zeitlin
<vadim@wxwidgets.org>
Thu, 16 Aug 2001 14:29:34 +0000
(14:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11394
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/generic/listctrl.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/generic/listctrl.cpp
b/src/generic/listctrl.cpp
index 5609fdd9973ee6417e57353be534e64d6cdaecf6..2744044c86fbd12e0dc895a9547b174a2158dd48 100644
(file)
--- 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);