]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add the header block to all children, not just the first bookpart
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 31 Aug 2009 14:08:45 +0000 (16:08 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 31 Aug 2009 14:10:12 +0000 (16:10 +0200)
lily/book.cc

index 48a5a4c5524c49dbfd95b0977b9104872ff69bff..303af1b8e3602e88f1338ef0e0c01a6e3c09d9e6 100644 (file)
@@ -127,8 +127,8 @@ Book::set_parent (Book *parent)
       paper_->unprotect ();
     }
   paper_->parent_ = parent->paper_;
-  /* If this part is the first child of parent, copy its header */
-  if (ly_is_module (parent->header_) && (scm_is_null (parent->bookparts_)))
+  /* Copy the header block of the parent */
+  if (ly_is_module (parent->header_))
     {
       SCM tmp_header = ly_make_anonymous_module (false);
       ly_module_copy (tmp_header, parent->header_);