simplify baseline code

This commit is contained in:
daboe01 committed 2015-06-28 16:20:06 +02:00
1 parent 6e0b20c921
commit f81ddc60ec
1 file changed
+2 -6
+2 -6
View File
@@ -200,14 +200,10 @@ var CPSystemTypesetterFactory;
if (!sameLine) //fix the _lineFragments when fontsizes differ
{
var l = _lineFragments.length,
maxHeight = 0;
var l = _lineFragments.length;
for (var i = 0 ; i < l ; i++)
maxHeight = MAX(maxHeight, _lineFragments[i]._fragmentRect.size.height);
for (var i = 0 ; i < l ; i++)
[_lineFragments[i] _adjustForHeight:maxHeight];
[_lineFragments[i] _adjustForHeight:_lineHeight];
}
if (!lineCount) // do not rescue on first line