Browse Source

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

tags/2021-05-28
ed 6 years ago
parent
commit
665f1fbedf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_data_structures/values/juce_ValueWithDefault.h

+ 1
- 1
modules/juce_data_structures/values/juce_ValueWithDefault.h 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. */


Loading…
Cancel
Save