[poppler] poppler/SplashOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Jun 2 15:03:09 PDT 2009


 poppler/SplashOutputDev.cc |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 45823bf8f4abacbbf257f6708264de074eda3cf4
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Jun 3 00:02:54 2009 +0200

    Make it compile :-/

diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 9341c86..d1840ec 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -393,11 +393,15 @@ static void splashOutBlendDifference(SplashColorPtr src, SplashColorPtr dest,
 
   for (i = 0; i < splashColorModeNComps[cm]; ++i) {
 #ifdef SPLASH_CMYK
-    if (cm == splashModeCMYK8) {
+    if (cm == splashModeCMYK8)
+    {
       blend[i] = dest[i] < src[i] ? 255 - (src[i] - dest[i]) : 255 - (dest[i] - src[i]);
-    } else {
+    }
+    else
 #endif
+    {
       blend[i] = dest[i] < src[i] ? src[i] - dest[i] : dest[i] - src[i];
+    }
   }
 }
 


More information about the poppler mailing list