]> source.dussan.org Git - redmine.git/commitdiff
Removed an instance variable.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Jan 2015 09:08:13 +0000 (09:08 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Jan 2015 09:08:13 +0000 (09:08 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13945 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf/wiki_pdf_helper.rb

index 91473765d596e2c02cbaae91cced65de754cb6c5..d4c4a686855bfc9315ee420ce82086dce5fa75d7 100644 (file)
@@ -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)