This commit is contained in:
Kovid Goyal 2023-09-14 20:30:13 +05:30
parent 824c0dcb2f
commit f486e62714
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -78,7 +78,7 @@ dedup_images(PDFDoc *self, PyObject *args) {
const PdfReference &canonical_ref = x.first.reference();
for (auto &ref : x.second) {
if (ref != canonical_ref) {
ref_map[ref] = x.first.reference();
ref_map[ref] = canonical_ref;
objects.RemoveObject(ref).reset();
count++;
}