summaryrefslogtreecommitdiff
path: root/tikzit/src/osx
diff options
context:
space:
mode:
authorakissinger <akissinger@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-01-17 11:31:08 +0000
committerakissinger <akissinger@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-01-17 11:31:08 +0000
commit09719a905bdffd52cf1c577d235fbb07c3683934 (patch)
tree7887b74dc66d6ef2ba350d6d12e7c61d5dcd6cd5 /tikzit/src/osx
parentcaaac57631bda3df581eac462cddd9473bc05b28 (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')
-rw-r--r--tikzit/src/osx/PreambleController.m6
-rw-r--r--tikzit/src/osx/PreviewController.m4
2 files changed, 5 insertions, 5 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]];
}
diff --git a/tikzit/src/osx/PreviewController.m b/tikzit/src/osx/PreviewController.m
index e54a91f..bd43c41 100644
--- a/tikzit/src/osx/PreviewController.m
+++ b/tikzit/src/osx/PreviewController.m
@@ -43,7 +43,7 @@ static PreviewController *preview = nil;
- (void)runLatex:(id)tikz {
// Only build one tex file at a time, so we don't get funky results.
- [latexLock lock];
+ //[latexLock lock];
[progressIndicator startAnimation:self];
int fnum = typesetCount++;
@@ -117,7 +117,7 @@ static PreviewController *preview = nil;
}
[progressIndicator stopAnimation:self];
- [latexLock unlock];
+ //[latexLock unlock];
}
- (void)buildTikz:(NSString*)tikz {