mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 01:28:39 +00:00
prevent accumulated offset
This commit is contained in:
parent
7cc6f1efcd
commit
f9a9ef2719
|
@ -427,11 +427,7 @@ void HTMLRenderer::prepare_text_line(GfxState * state)
|
||||||
// align horizontal position
|
// align horizontal position
|
||||||
// try to merge with the last line if possible
|
// try to merge with the last line if possible
|
||||||
double target = (cur_tx - draw_tx) * draw_text_scale;
|
double target = (cur_tx - draw_tx) * draw_text_scale;
|
||||||
if(abs(target) < param->h_eps)
|
if(!equal(target, 0))
|
||||||
{
|
|
||||||
// ignore it
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
text_line_buf->append_offset(target);
|
text_line_buf->append_offset(target);
|
||||||
draw_tx += target / draw_text_scale;
|
draw_tx += target / draw_text_scale;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user