[poppler] poppler/PSOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed Aug 1 15:23:29 PDT 2012
poppler/PSOutputDev.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d3c339017857cd762d8419260e33e1cc4e197743
Author: Thomas Freitag <Thomas.Freitag at alfa.de>
Date: Thu Aug 2 00:22:19 2012 +0200
PSOutputDev: Fix Bitmaps in level2sep or level3sep
Bug #52384
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index e15c2e9..f414897 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -5839,7 +5839,7 @@ void PSOutputDev::doImageL2(Object *ref, GfxImageColorMap *colorMap,
}
#endif
if ((level == psLevel2Sep || level == psLevel3Sep) && colorMap &&
- colorMap->getColorSpace()->getMode() == csSeparation) {
+ colorMap->getColorSpace()->getMode() == csSeparation && colorMap->getBits() == 8) {
color.c[0] = gfxColorComp1;
sepCS = (GfxSeparationColorSpace *)colorMap->getColorSpace();
sepCS->getCMYK(&color, &cmyk);
@@ -6198,7 +6198,7 @@ void PSOutputDev::doImageL3(Object *ref, GfxImageColorMap *colorMap,
} else {
if ((level == psLevel2Sep || level == psLevel3Sep) && colorMap &&
- colorMap->getColorSpace()->getMode() == csSeparation) {
+ colorMap->getColorSpace()->getMode() == csSeparation && colorMap->getBits() == 8) {
color.c[0] = gfxColorComp1;
sepCS = (GfxSeparationColorSpace *)colorMap->getColorSpace();
sepCS->getCMYK(&color, &cmyk);
More information about the poppler
mailing list