[poppler] Branch 'poppler-0.22' - poppler/PDFDoc.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Mar 25 14:57:56 PDT 2013


 poppler/PDFDoc.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 09ddb34f202be2111c70901724d64d3b61483c7a
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 0d78588..dde32b8 100644
--- a/poppler/PDFDoc.cc
+++ b/poppler/PDFDoc.cc
@@ -795,7 +795,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