Browse Source

LV2 Host: Fix bug where atom ports would not be correctly resized

pull/22/head
reuk 3 years ago
parent
commit
165b9a6c9b
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp

+ 1
- 1
modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp View File

@@ -1681,7 +1681,7 @@ private:
template <size_t Alignment>
static SingleSizeAlignedStorage<Alignment> grow (SingleSizeAlignedStorage<Alignment> storage, size_t size)
{
if (storage.size() <= size)
if (size <= storage.size())
return storage;
SingleSizeAlignedStorage<Alignment> newStorage { jmax (size, (storage.size() * 3) / 2) };


Loading…
Cancel
Save