summaryrefslogtreecommitdiff
path: root/poppler
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2006-05-05 20:51:01 +0000
committerAlbert Astals Cid <aacid@kde.org>2006-05-05 20:51:01 +0000
commitbe913b90d59da35a347498b86fdd3edb065aef23 (patch)
treec7055988e2b542948ab22293f0913181a2c85b44 /poppler
parent2b085293bd73b4e77da848b3fe63a7e82e9ba5e5 (diff)
* poppler/Function.cc: quick fix for KDE bug #126760
Better solutions are of course accepted
Diffstat (limited to 'poppler')
-rw-r--r--poppler/Function.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Function.cc b/poppler/Function.cc
index 149ceb2b..89bf21cc 100644
--- a/poppler/Function.cc
+++ b/poppler/Function.cc
@@ -390,7 +390,7 @@ void SampledFunction::transform(double *in, double *out) {
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