From b6134fa4ce2c74958714b368612a6cc8171b5dda Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 16 Jan 2020 18:16:24 -0500 Subject: [PATCH] Refresh editor when clearing a modulation (#1488) Some modulations in the LFO section don't repaint properly when odulation is cleared. I can't figure out why so just make that equivalent to an LFO swap or scene swap by rebuilding. It's infrequent enough that we can afford it. Closes #1477 --- src/common/gui/SurgeGUIEditor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/gui/SurgeGUIEditor.cpp b/src/common/gui/SurgeGUIEditor.cpp index c76f23652a5..6e8ec963603 100644 --- a/src/common/gui/SurgeGUIEditor.cpp +++ b/src/common/gui/SurgeGUIEditor.cpp @@ -2319,6 +2319,11 @@ int32_t SurgeGUIEditor::controlModifierClicked(CControl* control, CButtonState b addCallbackMenu(contextMenu, tmptxt, [this, ms, ptag]() { synth->clearModulation(ptag, (modsources)ms); refresh_mod(); + /* + ** FIXME - this is a pretty big hammer to deal with + ** #1477 - can we be more parsimonious? + */ + synth->refresh_editor = true; }); eid++; }