Merge pull request #11559 from bhasto/curveto2-fix

Fix how curveTo2 (v operator) is translated to SVG
This commit is contained in:
Tim van der Meij 2020-02-06 23:10:41 +01:00 committed by GitHub
commit e12e83702d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1231,8 +1231,6 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
j += 6; j += 6;
break; break;
case OPS.curveTo2: case OPS.curveTo2:
x = args[j + 2];
y = args[j + 3];
d.push( d.push(
"C", "C",
pf(x), pf(x),
@ -1242,6 +1240,8 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
pf(args[j + 2]), pf(args[j + 2]),
pf(args[j + 3]) pf(args[j + 3])
); );
x = args[j + 2];
y = args[j + 3];
j += 4; j += 4;
break; break;
case OPS.curveTo3: case OPS.curveTo3: