From a7a7afcfd2819b2f32f7dfc8b8242740c2829176 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 27 Feb 2020 11:36:54 -0800 Subject: [PATCH] [libtxt] Fix the flag used to check validity of the strikeout position in Skia font metrics (#15981) --- third_party/txt/src/txt/paragraph_txt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/txt/src/txt/paragraph_txt.cc b/third_party/txt/src/txt/paragraph_txt.cc index 0554091ceeb..54d8cc486e1 100644 --- a/third_party/txt/src/txt/paragraph_txt.cc +++ b/third_party/txt/src/txt/paragraph_txt.cc @@ -1538,7 +1538,7 @@ void ParagraphTxt::PaintDecorations(SkCanvas* canvas, kDoubleDecorationSpacing / -2.0; y_offset += (metrics.fFlags & - SkFontMetrics::FontMetricsFlags::kStrikeoutThicknessIsValid_Flag) + SkFontMetrics::FontMetricsFlags::kStrikeoutPositionIsValid_Flag) ? metrics.fStrikeoutPosition // Backup value if the strikeoutposition metric is not // available: