Skip to content

Commit 3860a43

Browse files
authored
Re-revert wrong line_heights implementation (flutter#6598)
1 parent 09dcc3d commit 3860a43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

third_party/txt/src/txt/paragraph.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,9 +732,9 @@ void Paragraph::Layout(double width, bool force) {
732732
auto update_line_metrics = [&](const SkPaint::FontMetrics& metrics,
733733
const TextStyle& style) {
734734
double line_spacing =
735-
(line_number == 0) ? -metrics.fAscent * style.height
736-
: (-metrics.fAscent + metrics.fLeading) *
737-
style.height * paragraph_style_.line_height;
735+
(line_number == 0)
736+
? -metrics.fAscent * style.height
737+
: (-metrics.fAscent + metrics.fLeading) * style.height;
738738
if (line_spacing > max_line_spacing) {
739739
max_line_spacing = line_spacing;
740740
if (line_number == 0) {

0 commit comments

Comments
 (0)