From c7a2e969b1b43b2fc5683d982249a299e1475b6f Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 20 Aug 2018 16:42:06 -0700 Subject: [PATCH] Clear the line baselines when doing each pass of layout (flutter/engine#6058) Fixes https://github.com/flutter/flutter/issues/20824 --- engine/src/flutter/third_party/txt/src/txt/paragraph.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/third_party/txt/src/txt/paragraph.cc b/engine/src/flutter/third_party/txt/src/txt/paragraph.cc index f0b733df58..5a4f7a80c8 100644 --- a/engine/src/flutter/third_party/txt/src/txt/paragraph.cc +++ b/engine/src/flutter/third_party/txt/src/txt/paragraph.cc @@ -434,6 +434,7 @@ void Paragraph::Layout(double width, bool force) { records_.clear(); line_heights_.clear(); + line_baselines_.clear(); glyph_lines_.clear(); code_unit_runs_.clear();