fixed: typing font was nil in sometimes cib-generated textviews

This commit is contained in:
daboe01
2016-10-26 19:53:59 +02:00
parent 5a2181c064
commit efa7406741
+6 -1
View File
@@ -133,7 +133,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
CPColor _textColor @accessors(property=textColor);
CPDictionary _selectedTextAttributes @accessors(property=selectedTextAttributes);
CPDictionary _typingAttributes @accessors(property=typingAttributes);
CPFont _font @accessors(property=font);
CPFont _font;
CPLayoutManager _layoutManager @accessors(getter=layoutManager);
CPRange _selectionRange @accessors(getter=selectedRange);
CPSelectionGranularity _selectionGranularity @accessors(property=selectionGranularity);
@@ -1586,6 +1586,11 @@ var kDelegateRespondsTo_textShouldBeginEditing
#pragma mark -
#pragma mark Font methods
- (CPFont)font
{
return _font || [CPFont systemFontOfSize:12.0];
}
- (void)setFont:(CPFont)font
{
_font = font;