[poppler] poppler/Function.cc poppler/GfxState.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Sep 30 15:00:43 PDT 2008


 poppler/Function.cc |    2 ++
 poppler/GfxState.cc |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 98310ca24841789cf53b10d34e271ceb4e054001
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Sep 30 23:59:43 2008 +0200

    Fix StitchingFunction(StitchingFunction *func) and GfxAxialShading(GfxAxialShading *shading)
    
    Fixes bug 17852

diff --git a/poppler/Function.cc b/poppler/Function.cc
index e0e1cfd..282cee2 100644
--- a/poppler/Function.cc
+++ b/poppler/Function.cc
@@ -665,6 +665,8 @@ StitchingFunction::StitchingFunction(Object *funcObj, Dict *dict) {
 StitchingFunction::StitchingFunction(StitchingFunction *func) {
   int i;
 
+  memcpy(this, func, sizeof(StitchingFunction));
+
   k = func->k;
   funcs = (Function **)gmallocn(k, sizeof(Function *));
   for (i = 0; i < k; ++i) {
diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 7991544..2e01b2b 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -2110,7 +2110,7 @@ GfxAxialShading::GfxAxialShading(GfxAxialShading *shading):
   x1 = shading->x1;
   y1 = shading->y1;
   t0 = shading->t0;
-  y1 = shading->t1;
+  t1 = shading->t1;
   nFuncs = shading->nFuncs;
   for (i = 0; i < nFuncs; ++i) {
     funcs[i] = shading->funcs[i]->copy();


More information about the poppler mailing list