From 10fd5b3cfd983bdbba152bcb9f2e5d0fa7a06976 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 30 Sep 2015 17:45:52 +0200 Subject: Fix an exception when changing the tab indentation while the Bundle Editor is open (fixes #2246) --- Source/SPBundleCommandTextView.m | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/SPBundleCommandTextView.m') diff --git a/Source/SPBundleCommandTextView.m b/Source/SPBundleCommandTextView.m index f8d4e53f..4dfe4002 100644 --- a/Source/SPBundleCommandTextView.m +++ b/Source/SPBundleCommandTextView.m @@ -816,6 +816,13 @@ [commandScrollView display]; } +- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context +{ + if([keyPath isEqualToString:SPCustomQueryEditorTabStopWidth]) { + [self setTabStops]; + } +} + #pragma mark - // Store the font in the prefs for selected delegates only -- cgit v1.2.3