mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Fix Region Gain freehand draw offset for regions with start offset
This commit is contained in:
parent
31730794be
commit
b962addc8c
1 changed files with 3 additions and 1 deletions
|
|
@ -1858,5 +1858,7 @@ AudioRegionView::parameter_changed (string const & p)
|
||||||
MergeableLine*
|
MergeableLine*
|
||||||
AudioRegionView::make_merger ()
|
AudioRegionView::make_merger ()
|
||||||
{
|
{
|
||||||
return new MergeableLine (gain_line, std::shared_ptr<AutomationControl>(), boost::bind (&Region::absolute_time_to_region_time, _region, _1), nullptr, nullptr);
|
return new MergeableLine (gain_line, std::shared_ptr<AutomationControl>(),
|
||||||
|
[this](timepos_t const& t) { return timepos_t (_region->position().distance (t)); },
|
||||||
|
nullptr, nullptr);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue