summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-03-25 16:43:24 +0100
committerRobin Gareus <robin@gareus.org>2020-03-25 16:43:24 +0100
commitec345037b08404089f6bc6d39a9e0ad82c89d68c (patch)
tree37896082333d79aea28684493c6def1d4125bb10 /gtk2_ardour/editor_drag.cc
parent89904468b317c3198af376de3048abbe4b3526e2 (diff)
Suppress debug output in optimized builds
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r--gtk2_ardour/editor_drag.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index d5859350c7..3e50bd6d63 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -4049,8 +4049,10 @@ CursorDrag::motion (GdkEvent* event, bool)
{
MusicSample where (_editor->canvas_event_sample (event) + snap_delta (event->button.state), 0);
+#ifndef NDEBUG
cerr << "cursor drag motion event x = " << event->motion.x << " spp " << _editor->get_current_zoom()
<< " would be " << event->motion.x * _editor->get_current_zoom() << " @ " << _editor->canvas_event_sample (event) << " + " << snap_delta (event->button.state) << " = " << where.sample << endl;
+#endif
_editor->snap_to_with_modifier (where, event);
@@ -4107,7 +4109,9 @@ CursorDrag::finished (GdkEvent* event, bool movement_occurred)
Session* s = _editor->session ();
if (s) {
+#ifndef NDEBUG
cerr << "cursor drag finished, reqL with " << _editor->playhead_cursor->current_sample() << endl;
+#endif
s->request_locate (_editor->playhead_cursor->current_sample (), _was_rolling ? MustRoll : MustStop);
_editor->_pending_locate_request = true;
s->request_resume_timecode_transmission ();