r20154 by jghali - fix stack corruption when switching between color modes in color editor
scribus-commit
scribus-commit at lists.scribus.net
Sun Jun 7 18:07:40 UTC 2015
Author: jghali
Date: Sun Jun 7 18:07:40 2015
New Revision: 20154
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20154
Log:
fix stack corruption when switching between color modes in color editor
Modified:
trunk/Scribus/scribus/sccolorengine.cpp
Modified: trunk/Scribus/scribus/sccolorengine.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20154&path=/trunk/Scribus/scribus/sccolorengine.cpp
==============================================================================
--- trunk/Scribus/scribus/sccolorengine.cpp (original)
+++ trunk/Scribus/scribus/sccolorengine.cpp Sun Jun 7 18:07:40 2015
@@ -193,7 +193,7 @@
inC[0] = color.L_val;
inC[1] = color.a_val;
inC[2] = color.b_val;
- quint8 outC[4];
+ quint16 outC[4];
trans.apply(inC, outC, 1);
cmyk.c = outC[0] / 257;
cmyk.m = outC[1] / 257;
More information about the scribus-commit
mailing list