mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Update SVGGraphics
to account for globally cached images (PR 11912 follow-up)
Since there's (essentially) no tests for the SVG-backend, these changes didn't make in into PR 11912 when the code in the `src/display/canvas.js` file was modified.
This commit is contained in:
parent
a327f386ff
commit
00d45fce33
1 changed files with 3 additions and 1 deletions
|
@ -1560,7 +1560,9 @@ if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
|||
}
|
||||
|
||||
paintImageXObject(objId) {
|
||||
const imgData = this.objs.get(objId);
|
||||
const imgData = objId.startsWith("g_")
|
||||
? this.commonObjs.get(objId)
|
||||
: this.objs.get(objId);
|
||||
if (!imgData) {
|
||||
warn(`Dependent image with object ID ${objId} is not ready yet`);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue