diff options
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r-- | Source/CMTextView.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m index 3a95a6b5..e32e1234 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -3097,6 +3097,9 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) NSMutableArray *myArrayOfTabs; NSMutableParagraphStyle *paragraphStyle; + BOOL oldEditableStatus = [self isEditable]; + [self setEditable:YES]; + NSInteger tabStopWidth = [prefs integerForKey:SPCustomQueryEditorTabStopWidth]; if(tabStopWidth < 1) tabStopWidth = 1; @@ -3130,6 +3133,9 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) [self setDefaultParagraphStyle:paragraphStyle]; [paragraphStyle release]; [self setFont:tvFont]; + + [self setEditable:oldEditableStatus]; + } - (void)drawRect:(NSRect)rect { |