Commit 02d505aa authored by Jeff Muizelaar's avatar Jeff Muizelaar

2006-09-06 Jeff Muizelaar <jeff@infidigm.net>

	* poppler/CairoOutputDev.cc: Avoid crashing in CairoOutputDev if
	endString is called without a corresponding beginString. Fixes #4515.
parent 3ea0aada
2006-09-06 Jeff Muizelaar <jeff@infidigm.net>
* poppler/CairoOutputDev.cc: Avoid crashing in CairoOutputDev if
endString is called without a corresponding beginString. Fixes #4515.
2006-09-06 Jeff Muizelaar <jeff@infidigm.net>
* configure.ac:
......
......@@ -395,7 +395,13 @@ void CairoOutputDev::endString(GfxState *state)
if (!currentFont)
return;
// endString can be called without a corresponding beginString. If this
// happens glyphs will be null so don't draw anything, just return.
// XXX: OutputDevs should probably not have to deal with this...
if (!glyphs)
return;
// ignore empty strings and invisible text -- this is used by
// Acrobat Capture
render = state->getRender();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment