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:
parent
bbb64369f1
commit
8c6f1e45c7
@ -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++}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user