From 3c2aeca673a1b49e79b02cab39c88b3d8e2edf14 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 20 Aug 2019 17:15:58 -0400 Subject: [PATCH] Copy the correct oscillator (#1068) Way back in 1.6.0 beta 5 we introduced this bug that always copied oscillator 0. Closes #1060 --- src/common/gui/SurgeGUIEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gui/SurgeGUIEditor.cpp b/src/common/gui/SurgeGUIEditor.cpp index 2311d94129e..32b362c7afe 100644 --- a/src/common/gui/SurgeGUIEditor.cpp +++ b/src/common/gui/SurgeGUIEditor.cpp @@ -1590,7 +1590,7 @@ int32_t SurgeGUIEditor::controlModifierClicked(CControl* control, CButtonState b contextMenu->addEntry(txt, eid++); contextMenu->addEntry("-", eid++); addCallbackMenu(contextMenu, "Copy", - [this]() { synth->storage.clipboard_copy(cp_osc, current_scene, 0); }); + [this, a]() { synth->storage.clipboard_copy(cp_osc, current_scene, a); }); eid++; addCallbackMenu(contextMenu, "Copy (with modulation)", [this, a]() {