mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-06 00:52:58 +00:00
fixed: setFont semantics are wrong
This commit is contained in:
1 parent
43eb2932ba
commit
4c6f5744d8
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user