mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
824c0dcb2f
commit
f486e62714
@ -78,7 +78,7 @@ dedup_images(PDFDoc *self, PyObject *args) {
|
|||||||
const PdfReference &canonical_ref = x.first.reference();
|
const PdfReference &canonical_ref = x.first.reference();
|
||||||
for (auto &ref : x.second) {
|
for (auto &ref : x.second) {
|
||||||
if (ref != canonical_ref) {
|
if (ref != canonical_ref) {
|
||||||
ref_map[ref] = x.first.reference();
|
ref_map[ref] = canonical_ref;
|
||||||
objects.RemoveObject(ref).reset();
|
objects.RemoveObject(ref).reset();
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user