Skip to content

Commit

Permalink
Fix an exception when changing the tab indentation while the Bundle E…
Browse files Browse the repository at this point in the history
…ditor is open (fixes #2246)
  • Loading branch information
dmoagx committed Sep 30, 2015
1 parent 59a344d commit 465062d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/SPBundleCommandTextView.m
Expand Up @@ -816,6 +816,13 @@ - (void)boundsDidChangeNotification:(NSNotification *)notification
[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
Expand Down

0 comments on commit 465062d

Please sign in to comment.