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

New commits:
commit b3f569f9a6c117c097acac52ae6552209fcd2101
Author: Albert Astals Cid <[email protected]>
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 <[email protected]>
-// Copyright (C) 2005-2008 Albert Astals Cid <[email protected]>
+// Copyright (C) 2005-2009 Albert Astals Cid <[email protected]>
 // Copyright (C) 2006 Thorkild Stray <[email protected]>
 // Copyright (C) 2006 Kristian Høgsberg <[email protected]>
 // Copyright (C) 2006-2008 Carlos Garcia Campos <[email protected]>
@@ -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;
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to