poppler/PDFDoc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c7e28e3d672654f31f1a0f95245a1fba3bc9c28f Author: Albert Astals Cid <[email protected]> Date: Mon Mar 25 22:55:58 2013 +0100 Only write the file once when saving Bug #62739 diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index 56c5918..46ecea5 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -809,7 +809,7 @@ int PDFDoc::saveAs(OutStream *outStr, PDFWriteMode mode) { if (!updated && mode == writeStandard) { // simply copy the original file saveWithoutChangesAs (outStr); - } if (mode == writeForceRewrite) { + } else if (mode == writeForceRewrite) { saveCompleteRewrite(outStr); } else { saveIncrementalUpdate(outStr); _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
