fixed: setFont semantics are wrong

This commit is contained in:
daboe01 committed 2016-05-24 09:07:03 +02:00
1 parent 43eb2932ba
commit 4c6f5744d8
1 file changed
+1 -2
+1 -2
View File
@@ -1479,9 +1479,8 @@ var kDelegateRespondsTo_textShouldBeginEditing
[_textStorage setFont:_font];
}
[_textStorage addAttribute:CPFontAttributeName value:font range:CPMakeRangeCopy(range)];
[_textStorage addAttribute:CPFontAttributeName value:font range:range];
[_layoutManager _validateLayoutAndGlyphs];
[self scrollRangeToVisible:CPMakeRange(CPMaxRange(range), 0)];
}
- (void)changeFont:(id)sender