]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed refreshing listctrl on focus change when it only has one item
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 29 Aug 2001 11:35:14 +0000 (11:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 29 Aug 2001 11:35:14 +0000 (11:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index a695ae73183a187eb7484403414806d8012a8005..b6e7e543c214b0c5ecb8c6a723896c2c1b745a3b 100644 (file)
@@ -2556,7 +2556,7 @@ void wxListMainWindow::RefreshSelected()
         to = GetItemCount() - 1;
     }
 
-    if ( HasCurrent() && m_current > from && m_current <= to )
+    if ( HasCurrent() && m_current >= from && m_current <= to )
     {
         RefreshLine(m_current);
     }