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(); } }