Comment 19 for bug 808894

Revision history for this message
In , Jason Crain (jcrain) wrote :

Comment on attachment 57993
fix selection of glyphs in actualtext

Review of attachment 57993:
-----------------------------------------------------------------

::: poppler/TextOutputDev.cc
@@ +5331,5 @@
> + // If this is the last glyph ensure all remaining text is included
> + // as pos may be < length due to rounding errors.
> + if (i == lenGlyphs - 1)
> + count = length - first;
> + text->addChar(state, glyphs[i].x, glyphs[i].y, glyphs[i].dx, glyphs[i].dy,

This needs to make sure that a surrogate pair is not split