Skip to content

Commit 953570a

Browse files
libtxt: truncate paragraph width to an integer in order to match Blink's behavior (flutter#5962)
See flutter#18665
1 parent 7f083e5 commit 953570a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/txt/src/txt/paragraph.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void Paragraph::Layout(double width, bool force) {
417417
}
418418
needs_layout_ = false;
419419

420-
width_ = width;
420+
width_ = floor(width);
421421

422422
if (!ComputeLineBreaks())
423423
return;

0 commit comments

Comments
 (0)