r21757 by jghali - fix export of password protected PDFs

scribus-commit scribus-commit at lists.scribus.net
Fri Feb 10 02:37:31 UTC 2017


Author: jghali
Date: Fri Feb 10 02:37:31 2017
New Revision: 21757

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21757
Log:
fix export of password protected PDFs

Modified:
    trunk/Scribus/scribus/pdfwriter.cpp

Modified: trunk/Scribus/scribus/pdfwriter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21757&path=/trunk/Scribus/scribus/pdfwriter.cpp
==============================================================================
--- trunk/Scribus/scribus/pdfwriter.cpp	(original)
+++ trunk/Scribus/scribus/pdfwriter.cpp	Fri Feb 10 02:37:31 2017
@@ -556,7 +556,7 @@
 	{
 		if (encrypted)
 		{
-			QByteArray step1 = ComputeRC4Key(m_ObjCounter);
+			QByteArray step1 = ComputeRC4Key(objId);
 			return new ScRC4EncodeFilter(&m_outStream, step1.data(), qMin(m_KeyLen+5, 16));
 		}
 		else




More information about the scribus-commit mailing list