summaryrefslogtreecommitdiff
path: root/tikzit/src
diff options
context:
space:
mode:
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 {