projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea8b5a9
)
Proper initialisation of _x/y_constrained.
author
nick_m
<mainsbridge@gmail.com>
Sat, 23 May 2015 12:59:19 +0000
(22:59 +1000)
committer
nick_m
<mainsbridge@gmail.com>
Sat, 23 May 2015 12:59:19 +0000
(22:59 +1000)
gtk2_ardour/editor_drag.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_drag.cc
b/gtk2_ardour/editor_drag.cc
index 97a24a1a1ace05308a1181be2a7904cab3b5efbc..f9222ac35adba9b1fbf2833276d316ef42104159 100644
(file)
--- 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);