From 5ff43549dd1c040f2964ab52aa63f97c70fb92ad 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 (#6058) Fixes https://github.com/flutter/flutter/issues/20824 --- third_party/txt/src/txt/paragraph.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/txt/src/txt/paragraph.cc b/third_party/txt/src/txt/paragraph.cc index f0b733df5..5a4f7a80c 100644 --- a/third_party/txt/src/txt/paragraph.cc +++ b/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(); -- GitLab