summaryrefslogtreecommitdiff
path: root/tikzit/src/common/TikzShape.m
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2013-03-24 15:52:33 +0000
committerAlex Merry <dev@randomguy3.me.uk>2013-03-24 16:47:10 +0000
commit1a111979e01a6081cbea69e40accebe16e6155e5 (patch)
tree41b63d722c48a2ff5f6b8d69135f151c561de5bb /tikzit/src/common/TikzShape.m
parent2724cb0739c4b2b2187f31634f5a6c97b6f91c87 (diff)
Add methods to Graph to create from tikz
These are just convenience wrappers for TikzGraphAssembler. As a result, non of the GTK code uses TikzGraphAssembler directly.
Diffstat (limited to 'tikzit/src/common/TikzShape.m')
-rw-r--r--tikzit/src/common/TikzShape.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/tikzit/src/common/TikzShape.m b/tikzit/src/common/TikzShape.m
index 722275c..8cf823b 100644
--- a/tikzit/src/common/TikzShape.m
+++ b/tikzit/src/common/TikzShape.m
@@ -22,7 +22,6 @@
//
#import "TikzShape.h"
-#import "TikzGraphAssembler.h"
#import "Graph.h"
@implementation TikzShape
@@ -35,7 +34,7 @@
error:NULL];
if (tikz == nil) return nil;
- Graph *graph = [TikzGraphAssembler parseTikz:tikz];
+ Graph *graph = [Graph graphFromTikz:tikz];
if (graph == nil) return nil;
NSRect graphBounds = ([graph hasBoundingBox]) ? [graph boundingBox] : [graph bounds];