13
0

A bit of crash proofiness for insane plugin UIs.

Plugin UI touch confirmed working with suil r4173 and distrho JUCE plugin "TAL Filter II".


git-svn-id: svn://localhost/ardour2/branches/3.0@11935 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2012-04-12 04:03:14 +00:00
parent f991e11b77
commit 81a76cc0fd

View File

@ -86,7 +86,11 @@ LV2PluginUI::touch(void* controller,
uint32_t port_index,
bool grabbed)
{
LV2PluginUI* me = (LV2PluginUI*)controller;
LV2PluginUI* me = (LV2PluginUI*)controller;
if (port_index >= me->_controllables.size()) {
return;
}
ControllableRef control = me->_controllables[port_index];
if (grabbed) {
control->start_touch(control->session().transport_frame());