[poppler] poppler/PDFDoc.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Mon Mar 25 15:04:12 PDT 2013
poppler/PDFDoc.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c7e28e3d672654f31f1a0f95245a1fba3bc9c28f
Author: Albert Astals Cid <aacid at kde.org>
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);
More information about the poppler
mailing list