From e1abcd323d11291ebbb4318461f199c71d33de84 Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:49:30 +0900 Subject: [PATCH] Update text_layout.rs --- crates/epaint/src/text/text_layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/epaint/src/text/text_layout.rs b/crates/epaint/src/text/text_layout.rs index 4fa3ba49427..f5ac3335639 100644 --- a/crates/epaint/src/text/text_layout.rs +++ b/crates/epaint/src/text/text_layout.rs @@ -650,7 +650,7 @@ fn galley_from_rows( // we should let the user know. } else { // Make sure we don't go over the max wrap width the user picked: - rect.max.x = rect.max.x.at_most(rect.min.x + job.wrap.max_width).floor(); + rect.max.x = rect.max.x.at_most(rect.min.x + job.wrap.max_width).round(); } }