r14466 by jghali - fix use of uninitialized variable in xara importer

scribus-commit scribus-commit at lists.scribus.net
Mon Jan 4 00:35:21 CET 2010


Revision: 14466
Author: jghali
Date: 2010-01-03T10:51:45.318533Z
Commit message: fix use of uninitialized variable in xara importer

Changeset: 
M  /trunk/Scribus/scribus/plugins/import/xar/importxar.cpp

Diffs:
Index: scribus/plugins/import/xar/importxar.cpp
===================================================================
--- scribus/plugins/import/xar/importxar.cpp	(revision 14465)
+++ scribus/plugins/import/xar/importxar.cpp	(revision 14466)
@@ -2207,7 +2207,7 @@
 				k = qMin(qRound(0.3 * qRed(r) + 0.59 * qGreen(r) + 0.11 * qBlue(r)), 255);
 				rR1 = qMin((rS * k) >> 8, 255);
 				gR1 = qMin((gS * k) >> 8, 255);
-				gR1 = qMin((bS * k) >> 8, 255);
+				bR1 = qMin((bS * k) >> 8, 255);
 				rR2 = qMin((rE * k) >> 8, 255);
 				gR2 = qMin((gE * k) >> 8, 255);
 				bR2 = qMin((bE * k) >> 8, 255);




More information about the scribus-commit mailing list