1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

SVG: Fixed a couple of parsing bugs

This commit is contained in:
Tom Poole 2019-06-24 13:02:20 +01:00
parent 73b1e45336
commit e88228a036

View file

@ -311,7 +311,11 @@ public:
p3 += last;
}
p2 = last + (last - last2);
p2 = last;
if (CharPointer_ASCII ("CcSs").indexOf (previousCommand) >= 0)
p2 += (last - last2);
path.cubicTo (p2, p1, p3);
last2 = p1;
@ -344,8 +348,11 @@ public:
if (isRelative)
p1 += last;
p2 = CharPointer_ASCII ("QqTt").indexOf (previousCommand) >= 0 ? last + (last - last2)
: p1;
p2 = last;
if (CharPointer_ASCII ("QqTt").indexOf (previousCommand) >= 0)
p2 += (last - last2);
path.quadraticTo (p2, p1);
last2 = p2;