diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-25 09:08:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-25 09:08:13 +0000 |
commit | 10dab4045e53f5a495515463b687557b40718ac9 (patch) | |
tree | c85a5ec1452d1cd61279837747578654fe2603db /lib | |
parent | 7a0432d85c01e36564f80d598e1d43dad148875a (diff) | |
download | redmine-10dab4045e53f5a495515463b687557b40718ac9.tar.gz redmine-10dab4045e53f5a495515463b687557b40718ac9.zip |
Removed an instance variable.
git-svn-id: http://svn.redmine.org/redmine/trunk@13945 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/export/pdf/wiki_pdf_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/redmine/export/pdf/wiki_pdf_helper.rb b/lib/redmine/export/pdf/wiki_pdf_helper.rb index 91473765d..d4c4a6868 100644 --- a/lib/redmine/export/pdf/wiki_pdf_helper.rb +++ b/lib/redmine/export/pdf/wiki_pdf_helper.rb @@ -59,10 +59,8 @@ module Redmine def write_page_hierarchy(pdf, pages, node=nil, level=0) if pages[node] pages[node].each do |page| - if @new_page + unless level == 0 && page == pages[node].first pdf.add_page - else - @new_page = true end pdf.bookmark page.title, level write_wiki_page(pdf, page) |