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
This commit is contained in:
Robin Dunn 2005-06-08 23:07:06 +00:00
parent 8028be3a32
commit fced50667d

View File

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