[poppler] poppler/GfxState.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Mar 15 23:58:59 UTC 2016


 poppler/GfxState.cc |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 04f3448d73ff7a3a2f1bf885aea64e96cc29a69d
Author: Thomas Freitag <Thomas.Freitag at alfa.de>
Date:   Wed Mar 16 00:58:35 2016 +0100

    Initialize gamut mapping multipliers in ::copy() functions
    
    Bug #90697

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 603bf5b..25196b4 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -809,6 +809,9 @@ GfxColorSpace *GfxCalGrayColorSpace::copy() {
   cs->blackY = blackY;
   cs->blackZ = blackZ;
   cs->gamma = gamma;
+  cs->kr = kr;
+  cs->kg = kg;
+  cs->kb = kb;
 #ifdef USE_CMS
   cs->transform = transform;
   if (transform != NULL) transform->ref();
@@ -1190,6 +1193,9 @@ GfxColorSpace *GfxCalRGBColorSpace::copy() {
   cs->gammaR = gammaR;
   cs->gammaG = gammaG;
   cs->gammaB = gammaB;
+  cs->kr = kr;
+  cs->kg = kg;
+  cs->kb = kb;
   for (i = 0; i < 9; ++i) {
     cs->mat[i] = mat[i];
   }


More information about the poppler mailing list