From 72a92bcd461ef2b8824387b420c9c695f72e58a3 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Fri, 5 Apr 2013 18:32:22 +0800 Subject: [PATCH] .. --- src/HTMLRenderer/state.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HTMLRenderer/state.cc b/src/HTMLRenderer/state.cc index 554588c..4833a4a 100644 --- a/src/HTMLRenderer/state.cc +++ b/src/HTMLRenderer/state.cc @@ -280,7 +280,8 @@ void HTMLRenderer::check_state_change(GfxState * state) // depends: text position & transformation if(need_recheck_position && (new_line_state < NLS_DIV)) { - // try to transform the old origin under the new TM + // TM[4] and/or TM[5] have been changed + // To find an offset (dx,dy), which would cancel the effect /* * CurTM * (cur_tx, cur_ty, 1)^T = OldTM * (draw_tx + dx, draw_ty + dy, 1)^T * @@ -317,6 +318,7 @@ void HTMLRenderer::check_state_change(GfxState * state) inverted[3] = old_tm[0] / det; dx = inverted[0] * lhs1 + inverted[2] * lhs2; dy = inverted[1] * lhs1 + inverted[3] * lhs2; + // currently we merge only text on a same horizontal line if(equal(dy, 0)) { merged = true;