From 03c40c237c25c049b07dcb7450afcc9cd9f2a765 Mon Sep 17 00:00:00 2001 From: Jakub Kucharski Date: Fri, 17 Jun 2016 13:41:39 +0200 Subject: [PATCH] Fix PDFDoc::saveIncrementalUpdate()'s detection of document being modified Bug 96561 --- poppler/PDFDoc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index 9fc43e5..239705f 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -964,7 +964,7 @@ void PDFDoc::saveIncrementalUpdate (OutStream* outStr) } } xref->unlock(); - if (uxref->getNumObjects() == 0) { //we have nothing to update + if (uxref->getNumObjects() == 1) { //we have nothing to update delete uxref; return; } -- 2.8.3