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