[poppler] Marked content, Gfx.cc

Nils Höglund nils.hoglund at gmail.com
Tue Feb 9 03:21:59 PST 2010


Hi,

In Gfx::opBeginMarkedContent, I would change the end of the function
to something like:

if(numArgs == 2 && args[1].isDict ()) {
  out->beginMarkedContent(args[0].getName(),args[1].getDict());
} else if(numArgs == 1) {
  out->beginMarkedContent(args[0].getName(),NULL);
}

(adding the else clause)

Otherwise beginMarkedContent and endMarkedContent will be unbalanced
(called different amount of times) in the output device.


Kind regards,


Nils Höglund


More information about the poppler mailing list