1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

StretchableLayoutManager: Prevent zero size layouts

This commit is contained in:
Oli 2023-01-04 12:59:07 +00:00 committed by Oliver James
parent b715614109
commit d264d95595

View file

@ -336,7 +336,7 @@ int StretchableLayoutManager::sizeToRealSize (double size, int totalSpace)
if (size < 0)
size *= -totalSpace;
return roundToInt (size);
return roundToInt (jmax (1.0, size));
}
} // namespace juce