From daece48bd7230e34f26d4b39186b88eb0952fe65 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sat, 4 May 2013 21:21:29 +0800 Subject: [PATCH] fix build for g++ 4.4.6 --- src/HTMLTextPage.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/HTMLTextPage.cc b/src/HTMLTextPage.cc index e7d6c6b..73da126 100644 --- a/src/HTMLTextPage.cc +++ b/src/HTMLTextPage.cc @@ -29,10 +29,15 @@ void HTMLTextPage::dump_text(ostream & out) if(param.optimize_text) optimize(); - //push a dummy entry for convenience - clips.emplace_back(HTMLClipState{0, 0, page_width, page_height}, text_lines.size()); + HTMLClipState page_box; + page_box.xmin = page_box.ymin = 0; + page_box.xmax = page_width; + page_box.ymax = page_height; - Clip cur_clip(HTMLClipState{0, 0, page_width, page_height}, 0); + //push a dummy entry for convenience + clips.emplace_back(page_box, text_lines.size()); + + Clip cur_clip(page_box, 0); bool has_clip = false; auto text_line_iter = text_lines.begin();