1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

VST: Fixed a potential crash in VSTPluginWindow constructor

This commit is contained in:
ed 2019-09-03 16:26:59 +01:00
parent 4050851443
commit 7cb771a642

View file

@ -2796,7 +2796,11 @@ public:
Vst2::ERect* rect = nullptr;
dispatch (Vst2::effEditGetRect, 0, 0, &rect, 0);
setSize (rect->right - rect->left, rect->bottom - rect->top);
if (rect != nullptr)
setSize (rect->right - rect->left, rect->bottom - rect->top);
else
setSize (1, 1);
setOpaque (true);
setVisible (true);