From ec87a51a75365a93ba3032e6c17349e011dd5b07 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 23 Aug 2012 21:47:26 +0200 Subject: [PATCH] .. --- src/HTMLRenderer/state.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HTMLRenderer/state.cc b/src/HTMLRenderer/state.cc index f5b33c7..623bee5 100644 --- a/src/HTMLRenderer/state.cc +++ b/src/HTMLRenderer/state.cc @@ -328,7 +328,7 @@ void HTMLRenderer::prepare_line(GfxState * state) // horizontal position // try to merge with the last line if possible - double target = (cur_tx - draw_tx) * draw_scale; + double target = cur_tx - draw_tx; if(abs(target) < param->h_eps) { // ignore it @@ -338,7 +338,7 @@ void HTMLRenderer::prepare_line(GfxState * state) // don't close a pending span here, keep the styling double w; - auto wid = install_whitespace(target, w); + auto wid = install_whitespace(target * draw_scale, w); html_fout << format("%2%") % wid % (target > 0 ? " " : ""); draw_tx += w / draw_scale; }