source file of the GNU LilyPond music typesetter
- (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "book.hh"
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_);
paper_book->paper_->parent_ = parent_part->paper_;
}
paper_book->header_ = header_;
+ scaled_bookdef->unprotect ();
if (scm_is_pair (bookparts_))
{