[poppler] poppler/GfxState.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Feb 25 15:21:23 PST 2009


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

New commits:
commit f7c88148fdb671736d81dd5f01a3fb68f944510c
Author: Koji Otani <sho at bbr.jp>
Date:   Wed Feb 25 23:38:35 2009 +0100

    Fix cache shifting

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 646f056..8fc8feb 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -1705,7 +1705,7 @@ void GfxICCBasedCache::put(int numA, int genA,
   if (cache[GFX_ICCBASED_CACHE_SIZE-1].num > 0) {
     delete cache[GFX_ICCBASED_CACHE_SIZE-1].colorSpace;
   }
-  for (i = GFX_ICCBASED_CACHE_SIZE; i > 0; i--) {
+  for (i = GFX_ICCBASED_CACHE_SIZE-1; i > 0; i--) {
     if (cache[i - 1].num > 0) cache[i] = cache[i - 1];
   }
   cache[0].num = numA;


More information about the poppler mailing list