8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e37e3ba commit 72af4a1Copy full SHA for 72af4a1
Core/Source/DTCoreTextLayoutFrame.m
@@ -265,7 +265,7 @@ - (void)_buildLinesWithTypesetter
265
{
266
if (lineHeight==0)
267
268
- lineHeight = previousLineMetrics.descent + currentLineMetrics.ascent;
+ lineHeight = currentLineMetrics.descent + currentLineMetrics.ascent;
269
}
270
271
if (isAtBeginOfParagraph)
@@ -1210,7 +1210,7 @@ - (CGPoint)baselineOriginToPositionLine:(DTCoreTextLayoutLine *)line afterLine:(
1210
// is absolute line height set?
1211
1212
1213
- lineHeight = previousLine.descent + line.ascent + usedLeading;
+ lineHeight = line.descent + line.ascent + usedLeading;
1214
1215
1216
if ([self isLineLastInParagraph:previousLine])
0 commit comments