From 165b9a6c9bfb5b6231f3cf032d9fd193f79899f9 Mon Sep 17 00:00:00 2001 From: reuk Date: Tue, 3 May 2022 20:57:19 +0100 Subject: [PATCH] LV2 Host: Fix bug where atom ports would not be correctly resized --- .../juce_audio_processors/format_types/juce_LV2PluginFormat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp index d37800ab5d..bacb94334d 100644 --- a/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp @@ -1681,7 +1681,7 @@ private: template static SingleSizeAlignedStorage grow (SingleSizeAlignedStorage storage, size_t size) { - if (storage.size() <= size) + if (size <= storage.size()) return storage; SingleSizeAlignedStorage newStorage { jmax (size, (storage.size() * 3) / 2) };