projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
840b871
)
fix thinko with region-gain time offset.
author
Robin Gareus
<robin@gareus.org>
Fri, 1 May 2015 12:30:49 +0000
(14:30 +0200)
committer
Robin Gareus
<robin@gareus.org>
Fri, 1 May 2015 12:30:49 +0000
(14:30 +0200)
gtk2_ardour/region_gain_line.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/region_gain_line.cc
b/gtk2_ardour/region_gain_line.cc
index 5ac985fa9a29b8ab680c7af44bd88d828933be39..7a748c8749aa88437371ac455ed3aa0bc1f03cde 100644
(file)
--- 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);
// 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 (r
v.region()->position
());
r.region()->PropertyChanged.connect (_region_changed_connection, invalidator (*this), boost::bind (&AudioRegionGainLine::region_changed, this, _1), gui_context());
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)) {
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());
}
}
}
}