summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-07-27 03:22:21 +0200
committerRobin Gareus <robin@gareus.org>2017-07-27 03:22:21 +0200
commite91821bd76b6008d9df6d5086655daa40a19275d (patch)
treed2b5011730183a9099556082e53140399c054914
parent3899c06fae96c09a04a2bc63a414a1fcfa847557 (diff)
Fix pasting automation at 0
-rw-r--r--gtk2_ardour/editor.cc2
-rw-r--r--gtk2_ardour/editor_ops.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 27b0d1b08c..d84d92267d 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -353,7 +353,7 @@ Editor::Editor ()
, cut_buffer_start (0)
, cut_buffer_length (0)
, button_bindings (0)
- , last_paste_pos (0)
+ , last_paste_pos (-1)
, paste_count (0)
, sfbrowser (0)
, current_interthread_info (0)
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index f015cc8931..414768f2f1 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -4279,7 +4279,7 @@ Editor::cut_copy (CutCopyOp op)
if (did_edit) {
/* reset repeated paste state */
paste_count = 0;
- last_paste_pos = 0;
+ last_paste_pos = -1;
commit_reversible_command ();
}