aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 5afe2fef..0a38712f 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -996,7 +996,10 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
- (void)makeTextSizeLarger
{
NSFont *aFont = [self font];
+ BOOL editableStatus = [self isEditable];
+ [self setEditable:YES];
[self setFont:[[NSFontManager sharedFontManager] convertFont:aFont toSize:[aFont pointSize]+1]];
+ [self setEditable:editableStatus];
}
/*
@@ -1006,7 +1009,10 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
{
NSFont *aFont = [self font];
int newSize = ([aFont pointSize]-1 < 4) ? [aFont pointSize] : [aFont pointSize]-1;
+ BOOL editableStatus = [self isEditable];
+ [self setEditable:YES];
[self setFont:[[NSFontManager sharedFontManager] convertFont:aFont toSize:newSize]];
+ [self setEditable:editableStatus];
}
/*