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:
parent
4050851443
commit
7cb771a642
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue