From 1046d177f2265227d55fe32d0ec61f6c9f7986e5 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Thu, 20 Jun 2019 20:31:08 +0800 Subject: [PATCH] editor: fix leading space on macOS --- src/vtextdocumentlayout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vtextdocumentlayout.cpp b/src/vtextdocumentlayout.cpp index 965f63e5..eebdf6e4 100644 --- a/src/vtextdocumentlayout.cpp +++ b/src/vtextdocumentlayout.cpp @@ -710,7 +710,8 @@ qreal VTextDocumentLayout::layoutLines(const QTextBlock &p_block, break; } - line.setLeadingIncluded(true); + // Will introduce extra space on macOS. + // line.setLeadingIncluded(true); line.setLineWidth(p_availableWidth); p_height += m_lineLeading;