Skip to content

GooString::fromInt: Repair the return value.

Greg Knight requested to merge lyngvi/poppler:goostring-fromint-fix-2 into master

formatInt renders from "right to left" and returns the position of the most significant digit in 'p' - which is not generally equal to 'buf' in the case of GooString::fromInt (unless you're rendering a 24-digit number.)

This repairs several issues in pdftohtml. This appears to have been broken in 48877b91 but is a trivial fix.

Edited by Greg Knight

Merge request reports