[poppler] poppler/GfxState.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Jul 26 16:00:20 PDT 2010


 poppler/GfxState.cc |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit 0dd7c80b7baf2622eb4780a867c4dc6291773f3b
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Jul 26 23:58:26 2010 +0100

    Do not overwrite the rgb values
    
    Recommended by Koji Otani in Re: [poppler] Question about code
    Passed the regression testing in my files

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index fe3ee77..423ad71 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -675,7 +675,6 @@ void GfxCalGrayColorSpace::getRGB(GfxColor *color, GfxRGB *rgb) {
   rgb->r = dblToCol(sqrt(clip01(r * kr)));
   rgb->g = dblToCol(sqrt(clip01(g * kg)));
   rgb->b = dblToCol(sqrt(clip01(b * kb)));
-  rgb->r = rgb->g = rgb->b = clip01(color->c[0]);
 }
 
 void GfxCalGrayColorSpace::getCMYK(GfxColor *color, GfxCMYK *cmyk) {


More information about the poppler mailing list