reverted some debug code

This commit is contained in:
rcancro
2016-02-12 11:22:13 -08:00
parent a920e353c6
commit 0e7fae1825

View File

@@ -95,10 +95,8 @@
textContainer.exclusionPaths = _attributes.exclusionPaths;
[layoutManager addTextContainer:textContainer];
NSRange lineRange = { 0, 0 };
while (NSMaxRange(lineRange) < [layoutManager numberOfGlyphs]/* && lineCount <= _attributes.maximumNumberOfLines*/) {
for (NSRange lineRange = { 0, 0 }; NSMaxRange(lineRange) < [layoutManager numberOfGlyphs] && lineCount <= _attributes.maximumNumberOfLines; lineCount++) {
[layoutManager lineFragmentRectForGlyphAtIndex:NSMaxRange(lineRange) effectiveRange:&lineRange];
lineCount++;
}
return lineCount;