[poppler] poppler/GfxState.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 21 15:35:21 UTC 2019
poppler/GfxState.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f00b088072b4f4a8392a96e2243059ffdbbcc33b
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed Aug 21 17:21:57 2019 +0200
GfxState: Move vars inside the ifdef they are used in
diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 3061abbe..f7810cb8 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -1825,9 +1825,9 @@ GfxColorSpace *GfxICCBasedColorSpace::parse(Array *arr, OutputDev *out, GfxState
error(errSyntaxError, -1, "Bad ICCBased color space");
return nullptr;
}
+#ifdef USE_CMS
const Object &obj1Ref = arr->getNF(1);
const Ref iccProfileStreamA = obj1Ref.isRef() ? obj1Ref.getRef() : Ref::INVALID();
-#ifdef USE_CMS
// check cache
if (out && iccProfileStreamA != Ref::INVALID()) {
if (auto *item = out->getIccColorSpaceCache()->lookup(iccProfileStreamA)) {
More information about the poppler
mailing list