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:
parent
73b1e45336
commit
e88228a036
1 changed files with 10 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue