mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #11947 from Snuffleupagus/GlobalImageCache-assert-not-inline
Ensure that that we don't attempt to cache *inline* images in the `GlobalImageCache` (PR 11912 follow-up)
This commit is contained in:
commit
0974d60523
1 changed files with 1 additions and 0 deletions
|
@ -605,6 +605,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
});
|
||||
|
||||
if (imageRef) {
|
||||
assert(!isInline, "Cannot cache an inline image globally.");
|
||||
this.globalImageCache.addPageIndex(imageRef, this.pageIndex);
|
||||
|
||||
if (cacheGlobally) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue