diff --git a/Classes/BITAttributedLabel.m b/Classes/BITAttributedLabel.m index 5ca72d11e5..a06dda6fc3 100755 --- a/Classes/BITAttributedLabel.m +++ b/Classes/BITAttributedLabel.m @@ -826,8 +826,8 @@ static inline NSAttributedString * NSAttributedStringBySettingColorFromContext(N NSMutableAttributedString *highlightAttributedString = [self.renderedAttributedText mutableCopy]; [highlightAttributedString addAttribute:(NSString *)kCTForegroundColorAttributeName value:(id)[self.highlightedTextColor CGColor] range:NSMakeRange(0, highlightAttributedString.length)]; - if (!self.highlightFramesetter) { - self.highlightFramesetter = CTFramesetterCreateWithAttributedString((__bridge CFAttributedStringRef)highlightAttributedString); + if (!_highlightFramesetter) { + _highlightFramesetter = CTFramesetterCreateWithAttributedString((__bridge CFAttributedStringRef)highlightAttributedString); } [self drawFramesetter:self.highlightFramesetter attributedString:highlightAttributedString textRange:textRange inRect:textRect context:c];