From c30bc8a3530fd50d0262d9d7fc898d42850baf08 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sat, 4 May 2013 19:36:18 +0800 Subject: [PATCH] clipbox fix --- src/HTMLRenderer/state.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/HTMLRenderer/state.cc b/src/HTMLRenderer/state.cc index f07d4a5..6199701 100644 --- a/src/HTMLRenderer/state.cc +++ b/src/HTMLRenderer/state.cc @@ -154,9 +154,11 @@ void HTMLRenderer::check_state_change(GfxState * state) if(all_changed || clip_changed) { + //TODO: compare with current clip box double x1, x2, y1, y2; state->getClipBBox(&x1, &y1, &x2, &y2); html_text_page.clip(x1, y1, x2, y2); + new_line_state = NLS_NEWLINE; } bool need_recheck_position = false;