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
This commit is contained in:
Carl Hetherington 2012-05-31 17:08:39 +00:00
parent a4ed608e4d
commit 556732df80
2 changed files with 4 additions and 1 deletions

View file

@ -558,7 +558,9 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool
}
_drag_had_movement = true;
if (with_push) {
did_push = with_push;
}
return clamped;
}

View file

@ -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;