summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poppler/GfxState.cc2
-rw-r--r--poppler/SplashOutputDev.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 97421919..a9da7be6 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -2856,7 +2856,7 @@ GfxDeviceNColorSpace::GfxDeviceNColorSpace(int nCompsA, std::vector<std::string>
overprintMask |= 0x08;
} else if (names[i] == "All") {
overprintMask = 0xffffffff;
- } else {
+ } else if (names[i] != "None") {
overprintMask = 0x0f;
}
}
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 8c3fe5ac..2bff1310 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -1704,7 +1704,7 @@ void SplashOutputDev::setOverprintMask(GfxColorSpace *colorSpace, bool overprint
mask &= ~8;
}
}
- if (grayIndexed) {
+ if (grayIndexed && colorSpace->getMode() != csDeviceN) {
mask &= ~7;
} else if (colorSpace->getMode() == csSeparation) {
GfxSeparationColorSpace *deviceSep = (GfxSeparationColorSpace *)colorSpace;