Merge pull request #16717 from Snuffleupagus/saveDocument-resetNewTemporaryRef

Don't reset temporary XRef-entries during saving (PR 16392 follow-up)
This commit is contained in:
Jonas Jenwald 2023-07-20 17:58:18 +02:00 committed by GitHub
commit 7220b93911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -661,23 +661,21 @@ class WorkerMessageHandler {
}; };
} }
try { return incrementalUpdate({
return incrementalUpdate({ originalData: stream.bytes,
originalData: stream.bytes, xrefInfo: newXrefInfo,
xrefInfo: newXrefInfo, newRefs,
newRefs, xref,
xref, hasXfa: !!xfa,
hasXfa: !!xfa, xfaDatasetsRef,
xfaDatasetsRef, hasXfaDatasetsEntry,
hasXfaDatasetsEntry, needAppearances,
needAppearances, acroFormRef,
acroFormRef, acroForm,
acroForm, xfaData,
xfaData, }).finally(() => {
});
} finally {
xref.resetNewTemporaryRef(); xref.resetNewTemporaryRef();
} });
}); });
} }
); );