1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

prevent accumulated offset

This commit is contained in:
Lu Wang 2013-04-04 12:39:49 +08:00
parent 7cc6f1efcd
commit f9a9ef2719

View File

@ -427,11 +427,7 @@ void HTMLRenderer::prepare_text_line(GfxState * state)
// align horizontal position
// try to merge with the last line if possible
double target = (cur_tx - draw_tx) * draw_text_scale;
if(abs(target) < param->h_eps)
{
// ignore it
}
else
if(!equal(target, 0))
{
text_line_buf->append_offset(target);
draw_tx += target / draw_text_scale;