[poppler] Branch 'xpdf303merge' - poppler/GfxState.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Aug 30 11:56:40 PDT 2011


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

New commits:
commit 7c5e496715f56498fb1aa08371d2b8d4d0e73d25
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Aug 30 20:59:36 2011 +0200

    xpdf303: No need for 4 Guint when 1 is enough

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 6626d26..4812996 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -4169,7 +4169,7 @@ GfxPatchMeshShading *GfxPatchMeshShading::parse(int typeA, Dict *dict,
   double x[16], y[16];
   Guint xi, yi;
   double c[4][gfxColorMaxComps];
-  Guint ci[4];
+  Guint ci;
   GfxShadingBitBuf *bitBuf;
   Object obj1, obj2;
   int i, j;
@@ -4287,10 +4287,10 @@ GfxPatchMeshShading *GfxPatchMeshShading::parse(int typeA, Dict *dict,
     }
     for (i = 0; i < nColors; ++i) {
       for (j = 0; j < nComps; ++j) {
-	if (!bitBuf->getBits(compBits, &ci[j])) {
+	if (!bitBuf->getBits(compBits, &ci)) {
 	  break;
 	}
-	c[i][j] = cMin[j] + cMul[j] * (double)ci[j];
+	c[i][j] = cMin[j] + cMul[j] * (double)ci;
 	if( nFuncsA == 0 ) {
 	  // ... and colorspace values can also be stored into doubles.
 	  // They will be casted later.


More information about the poppler mailing list