diff options
author | Robin Gareus <robin@gareus.org> | 2015-05-01 14:30:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-05-01 14:30:49 +0200 |
commit | 8e9bb2be463fd0b5347ee14eb0072e63cf86d43f (patch) | |
tree | 9db31b721c22840708a5a0505f948c0ea422407c /gtk2_ardour/region_gain_line.cc | |
parent | 840b871245cd679d2ebc8292cb6d9a875c092342 (diff) |
fix thinko with region-gain time offset.
Diffstat (limited to 'gtk2_ardour/region_gain_line.cc')
-rw-r--r-- | gtk2_ardour/region_gain_line.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/region_gain_line.cc b/gtk2_ardour/region_gain_line.cc index 5ac985fa9a..7a748c8749 100644 --- a/gtk2_ardour/region_gain_line.cc +++ b/gtk2_ardour/region_gain_line.cc @@ -45,7 +45,7 @@ AudioRegionGainLine::AudioRegionGainLine (const string & name, AudioRegionView& // If this isn't true something is horribly wrong, and we'll get catastrophic gain values assert(l->parameter().type() == EnvelopeAutomation); - _time_converter->set_origin_b (r.region()->position() - r.region()->start()); + _time_converter->set_origin_b (rv.region()->position()); r.region()->PropertyChanged.connect (_region_changed_connection, invalidator (*this), boost::bind (&AudioRegionGainLine::region_changed, this, _1), gui_context()); @@ -108,6 +108,6 @@ AudioRegionGainLine::region_changed (const PropertyChange& what_changed) interesting_stuff.add (ARDOUR::Properties::position); if (what_changed.contains (interesting_stuff)) { - _time_converter->set_origin_b (rv.region()->position() - rv.region()->start()); + _time_converter->set_origin_b (rv.region()->position()); } } |