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

New commits:
commit 3e9c6c6397691722c675b06d9756a389d1f723a3
Author: Albert Astals Cid <[email protected]>
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 b59a478..61c105d 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) {
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to