summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/automation_line.cc4
-rw-r--r--gtk2_ardour/automation_line.h1
2 files changed, 4 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;
}
diff --git a/gtk2_ardour/automation_line.h b/gtk2_ardour/automation_line.h
index 43bfd04d1d..b758dfb557 100644
--- a/gtk2_ardour/automation_line.h
+++ b/gtk2_ardour/automation_line.h
@@ -170,6 +170,7 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible
bool update_pending : 1;
bool no_draw : 1;
bool _is_boolean : 1;
+ /** true if we did a push at any point during the current drag */
bool did_push;
ArdourCanvas::Group& _parent_group;