Created attachment 30825 [details] [review] fix the problem. If OutputDev::supportTextCSPattern returns gTrue, Gfx::opEndText() calls restoreState() but corresponded saveState() isn't called in Gfx::opBeginText().
Interesting, do you have any pdf where this is a problem? Because i tested this code for regressions and it did not cause any
No PDF to show this is needed, and you did not answer my question, so closing the bug.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.