1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a mistake in ValueTree::AddOrRemoveChildAction

This commit is contained in:
jules 2018-07-02 17:47:44 +01:00
parent f784907c73
commit 3a6ec3e56b

View file

@ -477,7 +477,7 @@ public:
{
AddOrRemoveChildAction (Ptr parentObject, int index, SharedObject* newChild)
: target (static_cast<Ptr&&> (parentObject)),
child (newChild != nullptr ? newChild : parentObject->children.getObjectPointer (index)),
child (newChild != nullptr ? newChild : target->children.getObjectPointer (index)),
childIndex (index),
isDeleting (newChild == nullptr)
{