Skip to content

TextPage::takeText: reset actualText for the new page

Adam Sampson requested to merge atsampson/poppler:taketext into master

actualText has an internal pointer to the TextPage it's writing to, so if you called takeText and then continued to output more pages to the TextOutputDev, their text would be written to the page you'd taken rather than the new one.

(I ran into this in practice in xpopple's search code; see Debian bug 1059084.)

Edited by Adam Sampson

Merge request reports