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 /gtk2_ardour/route_time_axis.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 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index cbd2bc5492..68ca7008c7 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -399,7 +399,7 @@ RouteTimeAxisView::set_state (const XMLNode& node) if ((prop = (*iter)->property ("automation-id")) != 0) { Evoral::Parameter param = ARDOUR::EventTypeMap::instance().new_parameter(prop->value()); - bool show = ((prop = (*iter)->property ("shown")) != 0) && prop->value() == "yes"; + bool show = ((prop = (*iter)->property ("shown")) != 0) && string_is_affirmative (prop->value()); create_automation_child(param, show); } else { warning << "Automation child has no ID" << endmsg; @@ -1965,7 +1965,7 @@ RouteTimeAxisView::add_automation_child(Evoral::Parameter param, boost::shared_p if ((node = track->get_state_node()) != 0) { if ((prop = node->property ("shown")) != 0) { - if (prop->value() == "yes") { + if (string_is_affirmative (prop->value())) { hideit = false; } } |