TextLineWrap: wrapping to just width uses bottomless box

This commit is contained in:
Paul Campbell 2020-05-21 07:51:30 +01:00
parent fd53930980
commit 4af761ae33

View file

@ -20,7 +20,7 @@ class TextLineWrapImpl implements WordWrapper {
) {
return wrap(text, font, graphics2D,
Collections.singletonList(
new Rectangle(width, width)))
new Rectangle(width, Integer.MAX_VALUE)))
.get(0);
}