diff --git a/src/main/java/net/kemitix/text/fit/TextLineWrapImpl.java b/src/main/java/net/kemitix/text/fit/TextLineWrapImpl.java index 2417c96..2357acb 100644 --- a/src/main/java/net/kemitix/text/fit/TextLineWrapImpl.java +++ b/src/main/java/net/kemitix/text/fit/TextLineWrapImpl.java @@ -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); }