mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 07:26:32 +01:00
Fix for automation-line edits using the Range+Draw tool, when no line is already present.
This commit is contained in:
parent
08f51e72d5
commit
b24fef38b2
1 changed files with 9 additions and 0 deletions
|
|
@ -6262,6 +6262,15 @@ AutomationRangeDrag::setup (list<boost::shared_ptr<AutomationLine> > const & lin
|
|||
|
||||
pair<samplepos_t, samplepos_t> r = (*i)->get_point_x_range ();
|
||||
|
||||
//need a special detection for automation lanes (not region gain line)
|
||||
//TODO: if we implement automation regions, this check can probably be removed
|
||||
AudioRegionGainLine *argl = dynamic_cast<AudioRegionGainLine*> ((*i).get());
|
||||
if (!argl) {
|
||||
//in automation lanes, the EFFECTIVE range should be considered 0->max_samplepos (even if there is no line)
|
||||
r.first = 0;
|
||||
r.second = max_samplepos;
|
||||
}
|
||||
|
||||
/* check this range against all the AudioRanges that we are using */
|
||||
list<AudioRange>::const_iterator k = _ranges.begin ();
|
||||
while (k != _ranges.end()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue