From e09f12dc0bc25e19f9a097b770ed69e2a0211b65 Mon Sep 17 00:00:00 2001 From: daboe01 Date: Wed, 26 Oct 2016 19:58:21 +0200 Subject: [PATCH] fixed: accessors for _font were not used sometimes --- AppKit/CPTextView/CPTextView.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index c4a7138a0..141bffa0b 100644 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -607,7 +607,7 @@ var kDelegateRespondsTo_textShouldBeginEditing _textContainer = aContainer; _layoutManager = [_textContainer layoutManager]; _textStorage = [_layoutManager textStorage]; - [_textStorage setFont:_font]; + [_textStorage setFont:[self font]]; [_textStorage setForegroundColor:_textColor]; [self invalidateTextContainerOrigin]; @@ -1616,7 +1616,7 @@ var kDelegateRespondsTo_textShouldBeginEditing var currentAttributes = [_textStorage attributesAtIndex:range.location effectiveRange:nil] || _typingAttributes; [[[[self window] undoManager] prepareWithInvocationTarget:self] - setFont:[currentAttributes objectForKey:CPFontAttributeName] || _font + setFont:[currentAttributes objectForKey:CPFontAttributeName] || [self font] range:CPMakeRangeCopy(range)]; [_textStorage addAttribute:CPFontAttributeName value:font range:CPMakeRangeCopy(range)];