Skip to content

Commit

Permalink
libtxt: Initialize ParagraphTxt::final_line_count_ (flutter#30892)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Jan 20, 2022
1 parent 588d621 commit 072a392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/txt/src/txt/paragraph_txt.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class ParagraphTxt : public Paragraph {
mutable std::unique_ptr<icu::BreakIterator> word_breaker_;

std::vector<LineMetrics> line_metrics_;
size_t final_line_count_;
size_t final_line_count_ = 0;
std::vector<double> line_widths_;

// Stores the result of Layout().
Expand Down

0 comments on commit 072a392

Please sign in to comment.