]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't deselect all others when SelectItem is called on a treectrl with
authorRobin Dunn <robin@alldunn.com>
Wed, 8 Jun 2005 23:07:06 +0000 (23:07 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 8 Jun 2005 23:07:06 +0000 (23:07 +0000)
wxTR_MULTIPLE style

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 91ade19789ad508c96a0bd5ace546753533ac139..bdd3003ec196ec3a1aca14526a72b1ea1886d30e 100644 (file)
@@ -1931,7 +1931,7 @@ void wxGenericTreeCtrl::SelectItem(const wxTreeItemId& itemId, bool select)
 {
     if ( select )
     {
-        DoSelectItem(itemId);
+        DoSelectItem(itemId, !HasFlag(wxTR_MULTIPLE));
     }
     else // deselect
     {