bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash: \bookpart stored in a variable can't contain markup


From: Neil Puttock
Subject: Re: Crash: \bookpart stored in a variable can't contain markup
Date: Tue, 23 Nov 2010 21:52:16 +0000

On 22 November 2010 21:00, Reinhold Kainhofer <address@hidden> wrote:

> However, if the \bookpart contains a \markup, then LilyPond will crash. Simple
> sample file is attached.

The same happens for page-markers (i.e., \break, \pageBreak, \label, etc.):

mypart = \bookpart {
  \label #'foo
}

% also crashes
\bookpart { \mypart }

It seems that when a book is cloned, the copy constructor assumes all
elements in the original book to be scores, which is unsafe: the
elements can also be markup or page-markers:

#(display (ly:score? (car (ly:book-scores mypart))))

-> #f

Cheers,
Neil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]