[poppler] poppler/poppler: Function.cc,1.4,1.5

Albert Astals Cid aacid at kemper.freedesktop.org
Fri May 5 13:51:03 PDT 2006


Update of /cvs/poppler/poppler/poppler
In directory kemper:/tmp/cvs-serv17448/poppler

Modified Files:
	Function.cc 
Log Message:
        * poppler/Function.cc: quick fix for KDE bug #126760

Better solutions are of course accepted



Index: Function.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Function.cc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Function.cc	18 Jan 2006 22:32:13 -0000	1.4
+++ Function.cc	5 May 2006 20:51:01 -0000	1.5
@@ -390,7 +390,7 @@
       for (k = 0, t = j; k < m; ++k, t >>= 1) {
 	idx += idxMul[k] * (e[k][t & 1]);
       }
-      s[j] = samples[idx];
+      if (idx >= 0 && idx < nSamples) s[j] = samples[idx];
     }
 
     // do m sets of interpolations



More information about the poppler mailing list