region::absolute_time_to_region_beats() needs to incorporate start offset
* this fixes the Draw tool when adding notes; if you tried to draw in a region with a trimmed front, the note would not get added in the correct location
This commit is contained in:
parent
78f1205806
commit
1fdfa53b9f
|
@ -303,7 +303,7 @@ public:
|
|||
Temporal::Beats absolute_time_to_source_beats(Temporal::timepos_t const &) const;
|
||||
|
||||
Temporal::Beats absolute_time_to_region_beats (Temporal::timepos_t const & b) const {
|
||||
return position().distance (b).beats ();
|
||||
return position().distance (b+start()).beats ();
|
||||
}
|
||||
|
||||
int apply (Filter &, Progress* progress = 0);
|
||||
|
|
Loading…
Reference in New Issue