1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

Fixed an incorrect return value from ValueWithDefault::isUsingDefault()

This commit is contained in:
ed 2019-01-02 16:34:54 +00:00
parent 64cd94f8ae
commit 665f1fbedf

View file

@ -124,7 +124,7 @@ public:
/** Returns true if the property does not exist or is empty. */
bool isUsingDefault() const
{
return ! targetTree.hasProperty (targetProperty) || targetTree.getProperty (targetProperty) == var();
return ! targetTree.hasProperty (targetProperty) || targetTree.getProperty (targetProperty).toString().isEmpty();
}
/** Removes the property from the referenced ValueTree. */