summaryrefslogtreecommitdiff
path: root/tikzit/src
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2013-08-29 11:45:27 +0100
committerAleks Kissinger <aleks0@gmail.com>2013-08-29 11:45:27 +0100
commit0503e5b446241da385607c6392c7a84ba743538d (patch)
treedf03ad752a7d9e91085c83858131ec8e55d9049c /tikzit/src
parent1f995e9d45e31cb83f4616362e8b8bee4fd64b54 (diff)
fixed osx code and build to work with the new parser
Diffstat (limited to 'tikzit/src')
-rw-r--r--tikzit/src/osx/ParseErrorView.m2
-rw-r--r--tikzit/src/osx/TikzSourceController.m5
2 files changed, 4 insertions, 3 deletions
diff --git a/tikzit/src/osx/ParseErrorView.m b/tikzit/src/osx/ParseErrorView.m
index 97b1b94..83383f0 100644
--- a/tikzit/src/osx/ParseErrorView.m
+++ b/tikzit/src/osx/ParseErrorView.m
@@ -32,7 +32,7 @@
self.layer.backgroundColor = [[NSColor controlColor] CGColor];
//CGColorCreate(CGColorSpaceCreateDeviceRGB(), (CGFloat[]){ 1, .9, .64, 1 });
// newLayer.backgroundColor = [NSColor redColor].CGColor;
- newLayer.frame = NSMakeRect(100,100,100,100);//NSMakeRect(0,0,image.size.width,image.size.height);
+ newLayer.frame = CGRectMake(100,100,100,100);//NSMakeRect(0,0,image.size.width,image.size.height);
newLayer.position = CGPointMake(20,20);
//[self.layer addSublayer:newLayer];
}
diff --git a/tikzit/src/osx/TikzSourceController.m b/tikzit/src/osx/TikzSourceController.m
index 0cb3703..737d771 100644
--- a/tikzit/src/osx/TikzSourceController.m
+++ b/tikzit/src/osx/TikzSourceController.m
@@ -150,9 +150,10 @@
[graphicsView setGraph:g];
[graphicsView refreshLayers];
[self doRevertTikz];
+ return YES;
+ } else {
+ return NO;
}
-
- return success;
}
- (void)doRevertTikz {