[poppler] poppler/Gfx.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Tue Apr 27 05:28:26 PDT 2010


 poppler/Gfx.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f9f0e4b747a1527bd6354897cdba7954d58651de
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Tue Apr 27 14:26:23 2010 +0200

    Fix first color stop offset of linear gradients
    
    Fixes bug #27837.

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 8a7dfee..6259733 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -2524,7 +2524,7 @@ void Gfx::doAxialShFill(GfxAxialShading *shading) {
   if (out->useFillColorStop()) {
     // make sure we add stop color when t = tMin
     state->setFillColor(&color0);
-    out->updateFillColorStop(state, (tt - tMin)/(tMax - tMin));
+    out->updateFillColorStop(state, 0);
   }
 
   // compute the coordinates of the point on the t axis at t = tMin;


More information about the poppler mailing list