control lists should use the default value of their parameter, not zero (noticeable...
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 15 Jan 2013 15:00:37 +0000 (15:00 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 15 Jan 2013 15:00:37 +0000 (15:00 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13844 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/evoral/src/ControlList.cpp

index 870fc43cb645b19431db61178b96f1ac55de25dc..8daba39cdb12458546858f03d3cc130a4e02127f 100644 (file)
@@ -60,7 +60,7 @@ ControlList::ControlList (const Parameter& id)
        _changed_when_thawed = false;
        _min_yval = id.min();
        _max_yval = id.max();
-       _default_value = 0;
+       _default_value = id.normal();
        _lookup_cache.left = -1;
        _lookup_cache.range.first = _events.end();
        _search_cache.left = -1;
@@ -355,7 +355,7 @@ ControlList::start_write_pass (double when)
 }
 
 void
-ControlList::write_pass_finished (double when)
+ControlList::write_pass_finished (double /*when*/)
 {
        if (did_write_during_pass) {
                thin ();