diff --git a/source/backend/plugin/CarlaPluginVST2.cpp b/source/backend/plugin/CarlaPluginVST2.cpp index 75322250c..705eff910 100644 --- a/source/backend/plugin/CarlaPluginVST2.cpp +++ b/source/backend/plugin/CarlaPluginVST2.cpp @@ -480,7 +480,6 @@ public: uiTitle += " (GUI)"; intptr_t value = 0; - ERect* vstRect = nullptr; if (fUI.window == nullptr) { @@ -512,6 +511,9 @@ public: { fUI.isOpen = true; + ERect* vstRect = nullptr; + dispatcher(effEditGetRect, 0, 0, &vstRect); + if (vstRect != nullptr) { const int width(vstRect->right - vstRect->left);