-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
In TKELayoutManager.m:
// The additional indent is the distance from the first to the last character
leftInset += [self locationForGlyphAtIndex:firstTextGlyphIndex].x - [self locationForGlyphAtIndex:firstGlyphIndex].x;But, -[NSLayoutManager locationForGlyphAtIndex:] may call -[NSTextContainer lineFragmentRectForProposedRect:atIndex:writingDirection:remainingRect:] by default.
In TKETextContainer.m:
UIEdgeInsets insets = [(TKELayoutManager *)self.layoutManager insetsForLineStartingAtCharacterIndex: characterIndex];
rect.size.width -= insets.left + insets.right;
return rect;Which causes endless recursive call and crashes the application.
Metadata
Metadata
Assignees
Labels
No labels