]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
Fixed broken compilation due to Ove's last nice changes :-(
[wxWidgets.git] / src / generic / listctrl.cpp
index 63e50fb380ec5168a07caafefbe215279c5fe3e3..3fc7d41a6acaaa1f30aaa13f955066fae8e99b72 100644 (file)
@@ -2499,6 +2499,7 @@ void wxListMainWindow::SetItemState( long item, long state, long stateMask )
             UnfocusLine( m_current );
             m_current = line;
             FocusLine( m_current );
             UnfocusLine( m_current );
             m_current = line;
             FocusLine( m_current );
+            if ((m_mode & wxLC_SINGLE_SEL) && oldCurrent) oldCurrent->Hilight( FALSE );
             RefreshLine( m_current );
             if (oldCurrent) RefreshLine( oldCurrent );
         }
             RefreshLine( m_current );
             if (oldCurrent) RefreshLine( oldCurrent );
         }