diff options
Diffstat (limited to 'debian/patches/0002-Do-not-reverse-the-order-of-the-properties-when-pars.patch')
-rw-r--r-- | debian/patches/0002-Do-not-reverse-the-order-of-the-properties-when-pars.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches/0002-Do-not-reverse-the-order-of-the-properties-when-pars.patch b/debian/patches/0002-Do-not-reverse-the-order-of-the-properties-when-pars.patch new file mode 100644 index 0000000..a5e0ab6 --- /dev/null +++ b/debian/patches/0002-Do-not-reverse-the-order-of-the-properties-when-pars.patch @@ -0,0 +1,39 @@ +From 8de27c4c7c9a42a8224e3dfc865b25b184ce1399 Mon Sep 17 00:00:00 2001 +From: Alex Merry <dev@randomguy3.me.uk> +Date: Mon, 29 Jul 2013 16:12:32 +0100 +Subject: [PATCH 2/4] Do not reverse the order of the properties when parsing + +--- + tikzit/src/common/tikzparser.ym | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/tikzit/src/common/tikzparser.ym b/tikzit/src/common/tikzparser.ym +index 5c49ed9..98d25e4 100644 +--- a/tikzit/src/common/tikzparser.ym ++++ b/tikzit/src/common/tikzparser.ym +@@ -128,16 +128,16 @@ optproperties: + | "[" properties "]" + { $$ = $2; } + | { $$ = nil; }; +-properties: property extraproperties ++properties: extraproperties property + { +- [$2 addObject:$1]; +- $$ = $2; ++ [$1 addObject:$2]; ++ $$ = $1; + }; + extraproperties: +- "," property extraproperties ++ extraproperties property "," + { +- [$3 addObject:$2]; +- $$ = $3; ++ [$1 addObject:$2]; ++ $$ = $1; + } + | { $$ = [GraphElementData data]; }; + property: +-- +2.11.0 + |