Fix child selection in multi-selection generic wxTreeCtrl.
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
This commit is contained in:
@@ -463,6 +463,7 @@ All (GUI):
|
|||||||
- Improve row/column selection modes in wxGrid (joostn).
|
- Improve row/column selection modes in wxGrid (joostn).
|
||||||
- Allow using wxEVT_UPDATE_UI with wxRibbonButtonBar (Emilien Kia).
|
- Allow using wxEVT_UPDATE_UI with wxRibbonButtonBar (Emilien Kia).
|
||||||
- Add wxRibbonButtonBar::InsertXXXButton() methods (Emilien Kia).
|
- Add wxRibbonButtonBar::InsertXXXButton() methods (Emilien Kia).
|
||||||
|
- Fix multiple item selection in generic wxTreeCtrl (Igor Korot).
|
||||||
|
|
||||||
GTK:
|
GTK:
|
||||||
|
|
||||||
|
@@ -2054,7 +2054,8 @@ wxGenericTreeCtrl::TagAllChildrenUntilLast(wxGenericTreeItem *crt_item,
|
|||||||
if (crt_item==last_item)
|
if (crt_item==last_item)
|
||||||
return true;
|
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();
|
wxArrayGenericTreeItems& children = crt_item->GetChildren();
|
||||||
size_t count = children.GetCount();
|
size_t count = children.GetCount();
|
||||||
|
Reference in New Issue
Block a user