Skip to content

Commit

Permalink
Fix assert inside block
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjgalloway committed Sep 2, 2015
1 parent 46141bb commit 299cba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ComponentTextKit/TextKit/CKTextKitRenderer+Positioning.mm
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ - (CGRect)frameForTextRange:(NSRange)textRange
[self.context performBlockWithLockedTextKitComponents:^(NSLayoutManager *layoutManager, NSTextStorage *textStorage, NSTextContainer *textContainer) {
// Bail on invalid range.
if (NSMaxRange(textRange) > [textStorage length]) {
CKFailAssert(@"Invalid range");
CKCFailAssert(@"Invalid range");
return;
}

Expand Down

0 comments on commit 299cba7

Please sign in to comment.