summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2015-05-23 22:59:19 +1000
committernick_m <mainsbridge@gmail.com>2015-05-23 22:59:19 +1000
commit406bcb4dfe8a2e7dae33b550efe7fa561214ef98 (patch)
treeb722f39c550fa411f524dccb39d21f944580fa5f /gtk2_ardour
parentea8b5a970f7fdc0818fb86c32c93dd564eff941c (diff)
Proper initialisation of _x/y_constrained.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_drag.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index 97a24a1a1a..f9222ac35a 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -218,6 +218,8 @@ Drag::Drag (Editor* e, ArdourCanvas::Item* i, bool trackview_only)
: _editor (e)
, _item (i)
, _pointer_frame_offset (0)
+ , _x_constrained (false)
+ , _y_constrained (false)
, _trackview_only (trackview_only)
, _move_threshold_passed (false)
, _starting_point_passed (false)
@@ -251,8 +253,6 @@ Drag::start_grab (GdkEvent* event, Gdk::Cursor *cursor)
{
/* we set up x/y dragging constraints on first move */
- _x_constrained = false;
- _y_constrained = false;
_raw_grab_frame = _editor->canvas_event_sample (event, &_grab_x, &_grab_y);