r18674 by fschmid - Truncate output bytearray to the bytes really decompressed, as QDomDocument.setContent doesn't like additional null bytes.

scribus-commit scribus-commit at lists.scribus.net
Mon Jan 6 16:14:44 UTC 2014


Author: fschmid
Date: Mon Jan  6 16:14:43 2014
New Revision: 18674

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18674
Log:
Truncate output bytearray to the bytes really decompressed, as QDomDocument.setContent doesn't like additional null bytes.

Modified:
    trunk/Scribus/scribus/scgzfile.cpp

Modified: trunk/Scribus/scribus/scgzfile.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18674&path=/trunk/Scribus/scribus/scgzfile.cpp
==============================================================================
--- trunk/Scribus/scribus/scgzfile.cpp (original)
+++ trunk/Scribus/scribus/scgzfile.cpp Mon Jan  6 16:14:43 2014
@@ -263,6 +263,7 @@
 			break;
 	}
 	gzFile.close();
+	bArray.truncate(bytesRead);
 	return (bArray.size() > 0);
 }
 




More information about the scribus-commit mailing list