diff options
Diffstat (limited to 'graphics/kdegraphics3/patches/patch-aa')
-rw-r--r-- | graphics/kdegraphics3/patches/patch-aa | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/kdegraphics3/patches/patch-aa b/graphics/kdegraphics3/patches/patch-aa new file mode 100644 index 00000000000..35b1f0206d4 --- /dev/null +++ b/graphics/kdegraphics3/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.5 2004/12/23 13:02:17 markd Exp $ + +--- kpdf/xpdf/Gfx.cc.orig 2004-11-29 02:30:57.000000000 +1300 ++++ kpdf/xpdf/Gfx.cc +@@ -2654,7 +2654,9 @@ void Gfx::doImage(Object *ref, Stream *s + haveMask = gFalse; + dict->lookup("Mask", &maskObj); + if (maskObj.isArray()) { +- for (i = 0; i < maskObj.arrayGetLength(); ++i) { ++ for (i = 0; ++ i < maskObj.arrayGetLength() && i < 2*gfxColorMaxComps; ++ ++i) { + maskObj.arrayGet(i, &obj1); + maskColors[i] = obj1.getInt(); + obj1.free(); |