commit | 7eaecdaa78abdb80c4f6126dc3d09ad5cfa79f1a | [log] [tgz] |
---|---|---|
author | Albert Astals Cid <aacid@kde.org> | Tue Jun 24 02:31:43 2008 +0200 |
committer | Albert Astals Cid <aacid@kde.org> | Tue Jun 24 02:31:43 2008 +0200 |
tree | 3766a4966e567b44787e54f1b2e03d0f01117015 | |
parent | 92681ad4364c6b6da41c5bae2b746caaad7ec57c [diff] |
Open in WriteOnly mode, fixes the fact that when writing to an existing file, the contents beyond what we wrote were still there
diff --git a/qt4/src/poppler-base-converter.cc b/qt4/src/poppler-base-converter.cc index 012ba9e..b5f2035 100644 --- a/qt4/src/poppler-base-converter.cc +++ b/qt4/src/poppler-base-converter.cc
@@ -46,7 +46,7 @@ Q_ASSERT(iodev); if (!iodev->isOpen()) { - if (!iodev->open(QIODevice::ReadWrite)) + if (!iodev->open(QIODevice::WriteOnly)) { if (ownIodev) {