[poppler] poppler/Gfx.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Mar 10 16:26:35 PDT 2009


 poppler/Gfx.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b3f569f9a6c117c097acac52ae6552209fcd2101
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Mar 11 00:25:07 2009 +0100

    Check there is an optional content config before using it
    
    Fixes bug #20587

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index db06453..61bd046 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -14,7 +14,7 @@
 // under GPL version 2 or later
 //
 // Copyright (C) 2005 Jonathan Blandford <jrb at redhat.com>
-// Copyright (C) 2005-2008 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2005-2009 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2006 Thorkild Stray <thorkild at ifi.uio.no>
 // Copyright (C) 2006 Kristian Høgsberg <krh at redhat.com>
 // Copyright (C) 2006-2008 Carlos Garcia Campos <carlosgc at gnome.org>
@@ -3504,7 +3504,7 @@ void Gfx::opXObject(Object args[], int numArgs) {
   if (obj2.isNull()) {
     // No OC entry - so we proceed as normal
   } else if (obj2.isRef()) {
-    if ( ! catalog->getOptContentConfig()->optContentIsVisible( &obj2 ) ) {
+    if ( catalog->getOptContentConfig() && ! catalog->getOptContentConfig()->optContentIsVisible( &obj2 ) ) {
       obj2.free();
       obj1.free();
       return;


More information about the poppler mailing list