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:
parent
f991e11b77
commit
81a76cc0fd
@ -86,7 +86,11 @@ LV2PluginUI::touch(void* controller,
|
|||||||
uint32_t port_index,
|
uint32_t port_index,
|
||||||
bool grabbed)
|
bool grabbed)
|
||||||
{
|
{
|
||||||
LV2PluginUI* me = (LV2PluginUI*)controller;
|
LV2PluginUI* me = (LV2PluginUI*)controller;
|
||||||
|
if (port_index >= me->_controllables.size()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ControllableRef control = me->_controllables[port_index];
|
ControllableRef control = me->_controllables[port_index];
|
||||||
if (grabbed) {
|
if (grabbed) {
|
||||||
control->start_touch(control->session().transport_frame());
|
control->start_touch(control->session().transport_frame());
|
||||||
|
Loading…
Reference in New Issue
Block a user