From b8b15392739486007a2b95efaad3382ba97ccef7 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 6 Aug 2018 17:40:58 -0700 Subject: [PATCH] libtxt: truncate paragraph width to an integer in order to match Blink's behavior See https://github.com/flutter/flutter/issues/18665 --- third_party/txt/src/txt/paragraph.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/txt/src/txt/paragraph.cc b/third_party/txt/src/txt/paragraph.cc index a376470f9a819..f0b733df588f3 100644 --- a/third_party/txt/src/txt/paragraph.cc +++ b/third_party/txt/src/txt/paragraph.cc @@ -417,7 +417,7 @@ void Paragraph::Layout(double width, bool force) { } needs_layout_ = false; - width_ = width; + width_ = floor(width); if (!ComputeLineBreaks()) return;