c&p debug
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 21 Feb 2011 03:22:14 +0000 (03:22 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 21 Feb 2011 03:22:14 +0000 (03:22 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8917 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_ops.cc

index cd3ab010a867094e0eeff2ad82ab48c73191cbe8..bcae625c9d72b388061305b6e4fc0d4419bda3ee 100644 (file)
@@ -58,6 +58,7 @@
 #include "ardour/operations.h"
 
 #include "ardour_ui.h"
+#include "debug.h"
 #include "editor.h"
 #include "time_axis_view.h"
 #include "route_time_axis.h"
@@ -4131,6 +4132,7 @@ Editor::cut_copy_ranges (CutCopyOp op)
 void
 Editor::paste (float times)
 {
+        DEBUG_TRACE (DEBUG::CutNPaste, "paste to preferred edit pos\n");
        paste_internal (get_preferred_edit_position(), times);
 }
 
@@ -4153,6 +4155,8 @@ Editor::paste_internal (framepos_t position, float times)
 {
        bool commit = false;
 
+        DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("apparent paste position is %1\n", position));
+
        if (internal_editing()) {
                if (cut_buffer->midi_notes.empty()) {
                        return;
@@ -4165,6 +4169,7 @@ Editor::paste_internal (framepos_t position, float times)
 
        if (position == max_framepos) {
                position = get_preferred_edit_position();
+                DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("preferred edit position is %1\n", position));
        }
 
        begin_reversible_command (Operations::paste);