1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

Minor fix in ValueTree.

This commit is contained in:
jules 2012-07-09 15:19:19 +01:00
parent f50b05b251
commit 5edf41737e

View file

@ -304,7 +304,7 @@ public:
}
else
{
if (index < 0)
if (! isPositiveAndBelow (index, children.size()))
index = children.size();
undoManager->perform (new AddOrRemoveChildAction (this, index, child));