qt4/src/poppler-base-converter.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7eaecdaa78abdb80c4f6126dc3d09ad5cfa79f1a
Author: Albert Astals Cid <[EMAIL PROTECTED]>
Date:   Tue Jun 24 02:31:43 2008 +0200

    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 @@ QIODevice* BaseConverterPrivate::openDevice()
        Q_ASSERT(iodev);
        if (!iodev->isOpen())
        {
-               if (!iodev->open(QIODevice::ReadWrite))
+               if (!iodev->open(QIODevice::WriteOnly))
                {
                        if (ownIodev)
                        {
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to