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