[poppler] Branch 'poppler-0.8' - qt4/src

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Jun 23 17:32:30 PDT 2008


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

New commits:
commit 7eaecdaa78abdb80c4f6126dc3d09ad5cfa79f1a
Author: Albert Astals Cid <aacid at kde.org>
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)
 			{


More information about the poppler mailing list