From 53a3a6dc63c36641ad3104a080edaf7fdda512a7 Mon Sep 17 00:00:00 2001
From: Robert Roebling <robert@roebling.de>
Date: Tue, 26 Sep 2006 09:20:50 +0000
Subject: [PATCH]   [ 1541434 ] wxListView::IsSelected should be const

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/listview.tex | 2 +-
 include/wx/listctrl.h      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/latex/wx/listview.tex b/docs/latex/wx/listview.tex
index e19a0b512b..7758ebec2d 100644
--- a/docs/latex/wx/listview.tex
+++ b/docs/latex/wx/listview.tex
@@ -97,7 +97,7 @@ Returns the next selected item or $-1$ if there are no more of them.
 
 \membersection{wxListView::IsSelected}\label{wxlistviewisselected}
 
-\func{bool}{IsSelected}{\param{long }{index}}
+\constfunc{bool}{IsSelected}{\param{long }{index}}
 
 Returns {\tt true} if the item with the given {\it index} is selected, 
 {\tt false} otherwise.
diff --git a/include/wx/listctrl.h b/include/wx/listctrl.h
index f9b4629f21..d92e26d7b0 100644
--- a/include/wx/listctrl.h
+++ b/include/wx/listctrl.h
@@ -86,7 +86,7 @@ public:
         { return GetNextSelected(-1); }
 
     // return true if the item is selected
-    bool IsSelected(long index)
+    bool IsSelected(long index) const
         { return GetItemState(index, wxLIST_STATE_SELECTED) != 0; }
 
     // columns
-- 
2.50.0

