From 343c27b4c5c9f509fb06d336090a46e7dbc7c65c Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 9 Dec 2014 10:27:08 -0800 Subject: [PATCH] Leading fix --- legacy/project/src/common/TextField.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/project/src/common/TextField.cpp b/legacy/project/src/common/TextField.cpp index c7274fa90..35fce16c1 100644 --- a/legacy/project/src/common/TextField.cpp +++ b/legacy/project/src/common/TextField.cpp @@ -1800,7 +1800,7 @@ void TextField::Layout(const Matrix &inMatrix) mLines.push_back(line); line.Clear(); g.UpdateMetrics(line.mMetrics); - y += g.Height() + g.mFormat->leading; + y += g.Height() + g.mFormat->leading - 2; continue; } } @@ -1835,7 +1835,7 @@ void TextField::Layout(const Matrix &inMatrix) line.mMetrics.width = Round6(last_word_x6); } mLines.push_back(line); - y += g.Height() + g.mFormat->leading; + y += g.Height() + g.mFormat->leading - 2; x6 = gap<<6; line.Clear(); g.UpdateMetrics(line.mMetrics);