Fix pattern handling regression in SVGGraphics (PR 13770 follow-up)

While the FAQ clearly lists the SVG back-end as unsupported, see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#backends, I suppose that small/simple regressions still makes sense to fix.
This commit is contained in:
Jonas Jenwald 2021-10-18 21:40:10 +02:00
parent bbb64369f1
commit 8c6f1e45c7

View File

@ -1160,6 +1160,9 @@ if (
* @private
*/
_makeShadingPattern(args) {
if (typeof args === "string") {
args = this.objs.get(args);
}
switch (args[0]) {
case "RadialAxial":
const shadingId = `shading${shadingCount++}`;