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
Comment on attachment 57993
fix selection of glyphs in actualtext
Review of attachment 57993: ------- ------- ------- ------- ------- ------- ------- ------- --
-------
::: poppler/ TextOutputDev. cc state, glyphs[i].x, glyphs[i].y, glyphs[i].dx, glyphs[i].dy,
@@ +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(
This needs to make sure that a surrogate pair is not split