summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-05-31 17:08:39 +0000
committerCarl Hetherington <carl@carlh.net>2012-05-31 17:08:39 +0000
commit556732df8047c5738d0f50fb192c45c02bb90def (patch)
treea80a5298a9334017012055fbc6089c3b6af07d4f /gtk2_ardour/automation_line.cc
parenta4ed608e4d6679f5257d8ad4190da6693dc3ff29 (diff)
Fix incorrect automation point drags when a drag is started with push held and finished without it.
git-svn-id: svn://localhost/ardour2/branches/3.0@12509 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r--gtk2_ardour/automation_line.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc
index a6b2c64b12..744ec806d4 100644
--- a/gtk2_ardour/automation_line.cc
+++ b/gtk2_ardour/automation_line.cc
@@ -558,7 +558,9 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool
}
_drag_had_movement = true;
- did_push = with_push;
+ if (with_push) {
+ did_push = with_push;
+ }
return clamped;
}