From ec9ec403b497d48b50aefbee108d1c67e4be856d Mon Sep 17 00:00:00 2001 From: Hongliang TIAN Date: Wed, 19 Sep 2012 00:10:25 +0800 Subject: [PATCH] Fix jumping within page when JS enabled --- src/HTMLRenderer/general.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/HTMLRenderer/general.cc b/src/HTMLRenderer/general.cc index 290fd6c..8c9e23b 100644 --- a/src/HTMLRenderer/general.cc +++ b/src/HTMLRenderer/general.cc @@ -162,7 +162,9 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state) assert((!line_opened) && "Open line in startPage detected!"); - html_fout << "
" + html_fout + << "" + << "
" << "
process_nontext) @@ -188,9 +190,7 @@ void HTMLRenderer::startPage(int pageNum, GfxState *state) } html_fout << "\">"; - - html_fout << ""; - + draw_scale = 1.0; cur_font_info = install_font(nullptr); @@ -225,7 +225,7 @@ void HTMLRenderer::endPage() { cur_doc->processLinks(this, pageNum); // close page - html_fout << "
" << endl; + html_fout << "
" << endl; } /* @@ -265,7 +265,7 @@ void HTMLRenderer::processLink(AnnotLink * al) delete dest; if(pageno > 0) - dest_str = (char*)str_fmt("#p%x", pageno); + dest_str = (char*)str_fmt("#a%x", pageno); } } break;