diff options
author | Albert Astals Cid <aacid@kde.org> | 2013-03-25 22:55:58 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2013-03-25 22:57:42 +0100 |
commit | 09ddb34f202be2111c70901724d64d3b61483c7a (patch) | |
tree | 82ae226ada859e176b070d4175f19a49ddde332b | |
parent | 75378557f409a5a2305ea0fb42c56184c74ba887 (diff) |
Only write the file once when saving
Bug #62739
-rw-r--r-- | poppler/PDFDoc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index 0d78588c..dde32b85 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); |