The children which are not currently shown on the screen shouldn't be affected
by Shift-selecting in multi-selection control.
Closes #1312.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70249
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- Improve row/column selection modes in wxGrid (joostn).
- Allow using wxEVT_UPDATE_UI with wxRibbonButtonBar (Emilien Kia).
- Add wxRibbonButtonBar::InsertXXXButton() methods (Emilien Kia).
+- Fix multiple item selection in generic wxTreeCtrl (Igor Korot).
GTK:
if (crt_item==last_item)
return true;
- if (crt_item->HasChildren())
+ // We should leave the not shown children of collapsed items alone.
+ if (crt_item->HasChildren() && crt_item->IsExpanded())
{
wxArrayGenericTreeItems& children = crt_item->GetChildren();
size_t count = children.GetCount();