editor: fix leading space on macOS

This commit is contained in:
Le Tan 2019-06-20 20:31:08 +08:00
parent 6e3ab1d0bb
commit 1046d177f2

View File

@ -710,7 +710,8 @@ qreal VTextDocumentLayout::layoutLines(const QTextBlock &p_block,
break; break;
} }
line.setLeadingIncluded(true); // Will introduce extra space on macOS.
// line.setLeadingIncluded(true);
line.setLineWidth(p_availableWidth); line.setLineWidth(p_availableWidth);
p_height += m_lineLeading; p_height += m_lineLeading;