We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09dcc3d commit 3860a43Copy full SHA for 3860a43
1 file changed
third_party/txt/src/txt/paragraph.cc
@@ -732,9 +732,9 @@ void Paragraph::Layout(double width, bool force) {
732
auto update_line_metrics = [&](const SkPaint::FontMetrics& metrics,
733
const TextStyle& style) {
734
double line_spacing =
735
- (line_number == 0) ? -metrics.fAscent * style.height
736
- : (-metrics.fAscent + metrics.fLeading) *
737
- style.height * paragraph_style_.line_height;
+ (line_number == 0)
+ ? -metrics.fAscent * style.height
+ : (-metrics.fAscent + metrics.fLeading) * style.height;
738
if (line_spacing > max_line_spacing) {
739
max_line_spacing = line_spacing;
740
if (line_number == 0) {
0 commit comments