diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-02 20:53:31 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-02 20:53:31 +0000 |
commit | e488378d42777b436c6a2708d9dff2def51a5271 (patch) | |
tree | cbbd17c9a23b947bbbbb4e815e86654e8e993073 /libs/ardour/crossfade.cc | |
parent | 342cdda32e03be82bb071afd15c26989f54bffb2 (diff) |
string_is_affirmative() fix for 3.0
git-svn-id: svn://localhost/ardour2/branches/3.0@5723 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/crossfade.cc')
-rw-r--r-- | libs/ardour/crossfade.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/crossfade.cc b/libs/ardour/crossfade.cc index 86d509ec66..2d46c0c01a 100644 --- a/libs/ardour/crossfade.cc +++ b/libs/ardour/crossfade.cc @@ -743,7 +743,7 @@ Crossfade::set_state (const XMLNode& node) } if ((prop = node.property ("active")) != 0) { - bool x = (prop->value() == "yes"); + bool x = string_is_affirmative (prop->value()); if (x != _active) { _active = x; what_changed = Change (what_changed | ActiveChanged); @@ -753,13 +753,13 @@ Crossfade::set_state (const XMLNode& node) } if ((prop = node.property ("follow-overlap")) != 0) { - _follow_overlap = (prop->value() == "yes"); + _follow_overlap = string_is_affirmative (prop->value()); } else { _follow_overlap = false; } if ((prop = node.property ("fixed")) != 0) { - _fixed = (prop->value() == "yes"); + _fixed = string_is_affirmative (prop->value()); } else { _fixed = false; } |