summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Bader <williambader@hotmail.com>2013-08-25 19:31:11 +0200
committerAlbert Astals Cid <aacid@kde.org>2013-08-25 19:33:01 +0200
commited3585efc8b259cb065eac361a6a499f9f26851f (patch)
treea3abe58900ca8dae13b7a003d97bd617253c5757
parent70298a021657a72ae80389687a86247144e6d6b6 (diff)
Fix pdftops -eps -level1sep rendering of a file
Since 8fb243bf11a979af8bfa36427436940706c9f71d we have case splashModeXBGR8: + cSrcNonIso[3] = 255; and that means splashModeDeviceN8 and splashModeCMYK8 can't skip their breaks anymore otherwise the cSrcNonIso[3] gets overwritten Bug #68321
-rw-r--r--splash/Splash.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index d5aec8f9..6bb0dfe5 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -15,7 +15,7 @@
// Copyright (C) 2005 Marco Pesenti Gritti <mpg@redhat.com>
// Copyright (C) 2010-2013 Thomas Freitag <Thomas.Freitag@alfa.de>
// Copyright (C) 2010 Christian Feuersänger <cfeuersaenger@googlemail.com>
-// Copyright (C) 2011, 2012 William Bader <williambader@hotmail.com>
+// Copyright (C) 2011-2013 William Bader <williambader@hotmail.com>
// Copyright (C) 2012 Markus Trippelsdorf <markus@trippelsdorf.de>
// Copyright (C) 2012 Adrian Johnson <ajohnson@redneon.com>
// Copyright (C) 2012 Matthias Kramm <kramm@quiss.org>
@@ -518,12 +518,15 @@ void Splash::pipeRun(SplashPipe *pipe) {
switch (bitmap->mode) {
#if SPLASH_CMYK
case splashModeDeviceN8:
- for (cp = 4; cp < SPOT_NCOMPS + 4; cp++)
+ for (cp = 0; cp < SPOT_NCOMPS + 4; cp++)
cSrcNonIso[cp] = clip255(pipe->cSrc[cp] +
((pipe->cSrc[cp] - cDest[cp]) * t) / 255);
+ break;
case splashModeCMYK8:
- cSrcNonIso[3] = clip255(pipe->cSrc[3] +
- ((pipe->cSrc[3] - cDest[3]) * t) / 255);
+ for (cp = 0; cp < 4; cp++)
+ cSrcNonIso[cp] = clip255(pipe->cSrc[cp] +
+ ((pipe->cSrc[cp] - cDest[cp]) * t) / 255);
+ break;
#endif
case splashModeXBGR8:
cSrcNonIso[3] = 255;