From: Robin Dunn Date: Wed, 8 Jun 2005 23:07:06 +0000 (+0000) Subject: Don't deselect all others when SelectItem is called on a treectrl with X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fced50667d1e3fd106c5f441e63bfe4724b0cfda Don't deselect all others when SelectItem is called on a treectrl with wxTR_MULTIPLE style git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 91ade19789..bdd3003ec1 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -1931,7 +1931,7 @@ void wxGenericTreeCtrl::SelectItem(const wxTreeItemId& itemId, bool select) { if ( select ) { - DoSelectItem(itemId); + DoSelectItem(itemId, !HasFlag(wxTR_MULTIPLE)); } else // deselect {