From 1a111979e01a6081cbea69e40accebe16e6155e5 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sun, 24 Mar 2013 15:52:33 +0000 Subject: 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. --- tikzit/src/common/TikzShape.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tikzit/src/common/TikzShape.m') 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]; -- cgit v1.2.3