automation-range-drag: if lane is empty, use current value for guard points

* in the case where there are no existing automation points, then
 initiating an automation range drag  (select range, switch to Draw)
 should initialize the line at the current knob position
This commit is contained in:
Ben Loftis 2022-05-15 17:39:52 -05:00
parent cd332a2af0
commit e0f9f11dfc
3 changed files with 19 additions and 6 deletions

View file

@ -1362,7 +1362,7 @@ private:
class AutomationRangeDrag : public Drag
{
public:
AutomationRangeDrag (Editor *, AutomationTimeAxisView *, std::list<ARDOUR::TimelineRange> const &);
AutomationRangeDrag (Editor *, AutomationTimeAxisView *, float initial_value, std::list<ARDOUR::TimelineRange> const &);
AutomationRangeDrag (Editor *, std::list<RegionView*> const &, std::list<ARDOUR::TimelineRange> const &, double y_origin, double y_height);
void start_grab (GdkEvent *, Gdk::Cursor* c = 0);
@ -1394,6 +1394,7 @@ private:
double _y_height;
bool _nothing_to_drag;
bool _integral;
float_t _initial_value;
};
/** Drag of one edge of an xfade