Skip to content

Commit

Permalink
Merge pull request #11987 from Snuffleupagus/svg-paintImageXObject-Gl…
Browse files Browse the repository at this point in the history
…obalImageCache

Update `SVGGraphics` to account for globally cached images (PR 11912 follow-up)
  • Loading branch information
timvandermeij committed Jun 10, 2020
2 parents a327f38 + 00d45fc commit c9934de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/display/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c9934de

Please sign in to comment.