summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2015-06-19 00:02:09 +1000
committernick_m <mainsbridge@gmail.com>2015-06-19 00:02:09 +1000
commitdcd3e3823c608a8c9aae352b9f03b222ba449f19 (patch)
tree329cb2c8a91f09f945ed5a8be22a59bef2e229d6 /gtk2_ardour/automation_line.cc
parent6ecbeed8e82f594bf354d4f3974f601829b55002 (diff)
Don't begin command on start_grab for AutomationRangeDrag and NoteResizeDrag
- fixes a crash when clicking to resize without movement. - minor readability fix for _drag_had_movement
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r--gtk2_ardour/automation_line.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc
index a354afeeb6..e3acc56b3b 100644
--- a/gtk2_ardour/automation_line.cc
+++ b/gtk2_ardour/automation_line.cc
@@ -675,6 +675,7 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool
for (vector<CCP>::iterator ccp = contiguous_points.begin(); ccp != contiguous_points.end(); ++ccp) {
(*ccp)->compute_x_bounds (trackview.editor());
}
+ _drag_had_movement = true;
}
/* OK, now on to the stuff related to *this* motion event. First, for
@@ -735,7 +736,6 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool
_drag_distance += dx;
_drag_x += dx;
_last_drag_fraction = fraction;
- _drag_had_movement = true;
did_push = with_push;
return pair<double, float> (_drag_x + dx, _last_drag_fraction + dy);