Permalink
Browse files

Merge pull request #288 from bartvandendriessche/master

NIAttributedLabel: highlight for link drawn at incorrect y offset
  • Loading branch information...
2 parents 71b30a1 + 9a8ca05 commit 03aac558166c9186892f28bc08a67752bbddf6ab @jverkoey committed Oct 3, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/attributedlabel/src/NIAttributedLabel.m
@@ -1247,6 +1247,7 @@ - (void)drawTextInRect:(CGRect)rect {
}
CGRect highlightRect = [self _rectForRange:linkRange inLine:line lineOrigin:lineOrigins[i]];
+ highlightRect = CGRectOffset(highlightRect, 0, -rect.origin.y);
if (!CGRectIsEmpty(highlightRect)) {
CGFloat pi = (CGFloat)M_PI;

0 comments on commit 03aac55

Please sign in to comment.