From 4af761ae339e3d06dfe57a33543b5cc565b10993 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 21 May 2020 07:51:30 +0100 Subject: [PATCH] TextLineWrap: wrapping to just width uses bottomless box --- src/main/java/net/kemitix/text/fit/TextLineWrapImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }