[poppler] poppler/GfxState.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Nov 14 21:24:04 UTC 2017


 poppler/GfxState.cc |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit d63ddd1fb762e536dd78f24bd3e3ddbc3504e1eb
Author: Oliver Sander <oliver.sander at tu-dresden.de>
Date:   Tue Nov 14 20:05:33 2017 +0100

    Use GfxLabColorSpace::transform only when USE_CMS is set
    
    The recent commit e84338a44f27afb9872cb108fc29683b35ac55f7
    introduced an unqualified use of GfxLabColorSpace::transform,
    even though that member only exists if USE_CMS is set.
    
    Fix this by adding the appropriate preprocessor conditionals.

diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index aeb9534f..44a92813 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -29,6 +29,7 @@
 // Copyright (C) 2013 Fabio D'Urso <fabiodurso at hotmail.it>
 // Copyright (C) 2015 Adrian Johnson <ajohnson at redneon.com>
 // Copyright (C) 2016 Marek Kasik <mkasik at redhat.com>
+// Copyright (C) 2017 Oliver Sander <oliver.sander at tu-dresden.de>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -1591,7 +1592,9 @@ GfxColorSpace *GfxLabColorSpace::parse(Array *arr, GfxState *state) {
 
   if (!ok) {
       error(errSyntaxWarning, -1, "Bad Lab color space");
+#ifdef USE_CMS
       cs->transform = nullptr;
+#endif
       delete cs;
       return nullptr;
   }


More information about the poppler mailing list