From 63b52d964e75f9224645c6fbb4ba4387ada506f8 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Sun, 17 Aug 2014 13:59:26 +0800 Subject: [PATCH] Make project relevant to Mechatronics Also fix missing actually setting the origin with the "moveto" path command. --- src/document.cpp | 2 + .../totallyrelevanttomechatronics.svg | 75 +++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 src/svg-tests/totallyrelevanttomechatronics.svg diff --git a/src/document.cpp b/src/document.cpp index 35673d4..24746dc 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -615,6 +615,8 @@ pair Document::ParseSVGPathData(const string & d, const SVGM x[0] = (relative) ? x[0] + dx : dx; y[0] = (relative) ? y[0] + dy : dy; + x0 = x[0]; + y0 = y[0]; //Debug("mmoveto %f,%f", Float(x[0]),Float(y[0])); command = (command == "m") ? "l" : "L"; } diff --git a/src/svg-tests/totallyrelevanttomechatronics.svg b/src/svg-tests/totallyrelevanttomechatronics.svg new file mode 100644 index 0000000..d8227ef --- /dev/null +++ b/src/svg-tests/totallyrelevanttomechatronics.svg @@ -0,0 +1,75 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + -- 2.20.1