From a237fa84cdefe4eb1ecffaf45edbb0f6bc869e1d Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 20 Jan 2022 10:35:09 -0800 Subject: [PATCH] libtxt: Initialize ParagraphTxt::final_line_count_ (flutter/engine#30892) --- engine/src/flutter/third_party/txt/src/txt/paragraph_txt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.h b/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.h index e0cf8a6ddd6..b536b40ef9a 100644 --- a/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.h +++ b/engine/src/flutter/third_party/txt/src/txt/paragraph_txt.h @@ -187,7 +187,7 @@ class ParagraphTxt : public Paragraph { mutable std::unique_ptr word_breaker_; std::vector line_metrics_; - size_t final_line_count_; + size_t final_line_count_ = 0; std::vector line_widths_; // Stores the result of Layout().