summaryrefslogtreecommitdiff
path: root/libs/ardour/automation_event.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-07-04 00:39:00 +0000
committerDavid Robillard <d@drobilla.net>2007-07-04 00:39:00 +0000
commit2177f008411821e7bce9ca3c306ec64c70b1c58e (patch)
tree79b2f1827163aa40fdde34c5f9b89f7bd1eb3d49 /libs/ardour/automation_event.cc
parente0f287045eff5b6f0581b741a3005f54d6578737 (diff)
Add AutomationControl::parameter() for terseness.
Future-proof automation track GUI 'extra' XML (<GUI><AutomationChild automation-id="gain"> instead of <GUI><gain> so Parameter.to_string isn't used as an XML node name). Fix automation track controller bar shown/hidden state. Fix automation track initial show bug. git-svn-id: svn://localhost/ardour2/trunk@2103 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/automation_event.cc')
-rw-r--r--libs/ardour/automation_event.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/automation_event.cc b/libs/ardour/automation_event.cc
index 6fc24c7960..b7a4bc0399 100644
--- a/libs/ardour/automation_event.cc
+++ b/libs/ardour/automation_event.cc
@@ -1374,7 +1374,7 @@ AutomationList::set_state (const XMLNode& node)
}
if ((prop = node.property (X_("default"))) != 0){
- _default_value = atof (prop->value());
+ _default_value = atof (prop->value().c_str());
} else {
_default_value = 0.0;
}
@@ -1392,19 +1392,19 @@ AutomationList::set_state (const XMLNode& node)
}
if ((prop = node.property (X_("min_yval"))) != 0) {
- _min_yval = atof (prop->value ());
+ _min_yval = atof (prop->value ().c_str());
} else {
_min_yval = FLT_MIN;
}
if ((prop = node.property (X_("max_yval"))) != 0) {
- _max_yval = atof (prop->value ());
+ _max_yval = atof (prop->value ().c_str());
} else {
_max_yval = FLT_MAX;
}
if ((prop = node.property (X_("max_xval"))) != 0) {
- _max_xval = atof (prop->value ());
+ _max_xval = atof (prop->value ().c_str());
} else {
_max_xval = 0; // means "no limit ;
}