summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-04-23 00:35:38 +0000
committerCarl Hetherington <carl@carlh.net>2012-04-23 00:35:38 +0000
commit8a98f466f9580cda97d952109ae5f8ccadfadc03 (patch)
tree30fea849e85d5248b5f9e349d33d87b302290439 /gtk2_ardour
parent8d94cc6d13b53f2566f38a2af6b3aa403057fddf (diff)
Minor simplification.
git-svn-id: svn://localhost/ardour2/branches/3.0@12059 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_drag.cc9
1 files changed, 1 insertions, 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);