From 53597cc28855ce8351ffa7879f8d5f4ddf39934f Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Tue, 21 Aug 2012 00:20:20 +0200 Subject: [PATCH] remove default value --- src/HTMLRenderer/general.cc | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/HTMLRenderer/general.cc b/src/HTMLRenderer/general.cc index 1bb8116..d5a7af3 100644 --- a/src/HTMLRenderer/general.cc +++ b/src/HTMLRenderer/general.cc @@ -106,19 +106,6 @@ void HTMLRenderer::pre_process() } allcss_fout << ifstream(PDF2HTMLEX_DATA_PATH / CSS_FILENAME, ifstream::binary).rdbuf(); - - // install default values - install_font(nullptr); - install_font_size(0); - - install_transform_matrix(id_matrix); - - install_letter_space(0); - install_word_space(0); - - GfxRGB black; - black.r = black.g = black.b = 0; - install_color(&black); } void HTMLRenderer::post_process() @@ -184,6 +171,7 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state) draw_tx = draw_ty = 0; reset_state_change(); + all_changed = true; } void HTMLRenderer::endPage() {