[poppler] poppler/Gfx.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Mon Dec 10 13:00:55 PST 2007


 poppler/Gfx.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7cbabbf378cf5a9c0411558ff02b44dec2040ea1
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Mon Dec 10 22:00:30 2007 +0100

    Fix a crash when marked content properties operator is not a dict.

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index d2b3cb8..78bb640 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -4028,7 +4028,7 @@ void Gfx::opBeginMarkedContent(Object args[], int numArgs) {
     fflush(stdout);
   }
 
-  if(numArgs == 2) {
+  if(numArgs == 2 && args[1].isDict ()) {
     out->beginMarkedContent(args[0].getName(),args[1].getDict());
   } else {
     out->beginMarkedContent(args[0].getName());


More information about the poppler mailing list