Skip to content

Commit

Permalink
Update text_layout.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Sep 13, 2024
1 parent f658f8b commit e1abcd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/epaint/src/text/text_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit e1abcd3

Please sign in to comment.