Skip to content

Commit

Permalink
MSEG Crash on Open due to acc typo
Browse files Browse the repository at this point in the history
I had introduced a simple type which meant opening
the mseg crashed. Resolve it with this.
  • Loading branch information
baconpaul committed Dec 15, 2021
1 parent edd2344 commit fb90f20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/surge-xt/gui/widgets/WidgetBaseMixin.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ struct WidgetBaseMixin : public Surge::GUI::SkinConsumingComponent,
for (auto t : listeners)
t->valueChanged(this);

if (auto *handler = asT()->getAccessibilityHandler(); handler->getValueInterface())
if (auto *handler = asT()->getAccessibilityHandler())
{
handler->notifyAccessibilityEvent(juce::AccessibilityEvent::valueChanged);
if (handler->getValueInterface())
{
handler->notifyAccessibilityEvent(juce::AccessibilityEvent::valueChanged);
}
}
}
void notifyControlModifierClicked(const juce::ModifierKeys &k, bool addRMB = false)
Expand Down

0 comments on commit fb90f20

Please sign in to comment.