From c78c2a77b66ac06bd07358bd1d090ddd39283d6e Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 9 Sep 2018 20:49:53 +0100 Subject: [PATCH] Add back something removed by mistake.. --- source/backend/plugin/CarlaPluginVST2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);