diff options
author | akissinger <akissinger@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-17 11:31:08 +0000 |
---|---|---|
committer | akissinger <akissinger@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-17 11:31:08 +0000 |
commit | 09719a905bdffd52cf1c577d235fbb07c3683934 (patch) | |
tree | 7887b74dc66d6ef2ba350d6d12e7c61d5dcd6cd5 /tikzit/src/osx/PreambleController.m | |
parent | caaac57631bda3df581eac462cddd9473bc05b28 (diff) |
fixed bug with edge and node styles not removing properly
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@381 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/osx/PreambleController.m')
-rw-r--r-- | tikzit/src/osx/PreambleController.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tikzit/src/osx/PreambleController.m b/tikzit/src/osx/PreambleController.m index ea95716..e09a3fc 100644 --- a/tikzit/src/osx/PreambleController.m +++ b/tikzit/src/osx/PreambleController.m @@ -123,7 +123,7 @@ if ([[toolbar selectedItemIdentifier] isEqualToString:[defaultToolbarItem itemIdentifier]]) { [self setCurrentPreamble:@"default"]; [textView setBackgroundColor:ghostColor]; - } else if ([toolbar.selectedItemIdentifier isEqualToString:[customToolbarItem itemIdentifier]]) { + } else if ([[toolbar selectedItemIdentifier] isEqualToString:[customToolbarItem itemIdentifier]]) { NSString *key = nil; if ([selectionIndexes count]==1) { int i = [selectionIndexes firstIndex]; @@ -133,8 +133,8 @@ [self setCurrentPreamble:key]; //NSLog(@"preamble set to %@", key); } else { - [self setCurrentPreamble:@"default"]; - //NSLog(@"preamble set to default"); + [self setCurrentPreamble:@"custom"]; + //NSLog(@"preamble set to custom"); } [textView setBackgroundColor:[NSColor whiteColor]]; } |