mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Minor fix to the demo treeview.
This commit is contained in:
parent
f55371ce4b
commit
1c982672e2
1 changed files with 3 additions and 0 deletions
|
|
@ -95,6 +95,9 @@ public:
|
|||
|
||||
if (v.getParent().isValid() && newParent != v && ! newParent.isAChildOf (v))
|
||||
{
|
||||
if (v.getParent() == newParent && newParent.indexOf(v) < insertIndex)
|
||||
--insertIndex;
|
||||
|
||||
v.getParent().removeChild (v, &undoManager);
|
||||
newParent.addChild (v, insertIndex, &undoManager);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue