From 228f49a7ccb33e9a5c274f3e9102dceb1aaa0e28 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sat, 23 Mar 2013 18:24:32 +0000 Subject: Store parsed graph properties It appears I broke this when rewriting the parser. --- tikzit/src/common/tikzparser.ym | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tikzit/src/common/tikzparser.ym b/tikzit/src/common/tikzparser.ym index cf9205c..85a0fe0 100644 --- a/tikzit/src/common/tikzparser.ym +++ b/tikzit/src/common/tikzparser.ym @@ -107,7 +107,12 @@ void yyerror(YYLTYPE *yylloc, TikzGraphAssembler *assembler, const char *str) { %% -tikzpicture: "\\begin{tikzpicture}" optproperties tikzcmds "\\end{tikzpicture}"; +tikzpicture: "\\begin{tikzpicture}" optproperties tikzcmds "\\end{tikzpicture}" + { + if ($2) { + [[assembler graph] setData:$2]; + } + }; tikzcmds: tikzcmds tikzcmd | ; tikzcmd: node | edge | boundingbox | ignore; -- cgit v1.2.3