From: Sam Moore Date: Sun, 17 Aug 2014 05:59:26 +0000 (+0800) Subject: Make project relevant to Mechatronics X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=commitdiff_plain;h=63b52d964e75f9224645c6fbb4ba4387ada506f8 Make project relevant to Mechatronics Also fix missing actually setting the origin with the "moveto" path command. --- 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 + + + + + + + + +