From 8a98f466f9580cda97d952109ae5f8ccadfadc03 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 23 Apr 2012 00:35:38 +0000 Subject: [PATCH] Minor simplification. git-svn-id: svn://localhost/ardour2/branches/3.0@12059 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_drag.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index b0813e7cba..1bdcf920c5 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -2981,14 +2981,7 @@ LineDrag::motion (GdkEvent* event, bool) cy = min ((double) _line->height(), cy); double const fraction = 1.0 - (cy / _line->height()); - - bool push; - - if (Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier)) { - push = false; - } else { - push = true; - } + bool const push = !Keyboard::modifier_state_contains (event->button.state, Keyboard::PrimaryModifier); /* we are ignoring x position for this drag, so we can just pass in anything */ _line->drag_motion (0, fraction, true, push);