]> git.donarmstrong.com Git - lilypond.git/commit
Fix #1427.
authorNeil Puttock <n.puttock@gmail.com>
Tue, 7 Dec 2010 23:39:05 +0000 (23:39 +0000)
committerNeil Puttock <n.puttock@gmail.com>
Tue, 7 Dec 2010 23:39:44 +0000 (23:39 +0000)
commita8d84c480a22f6ec2a20404cf4260e3f1d98866f
treea0530429361e92ca541bd09afcc882afd193bb88
parent0d864ca56704009bda2a872cefd7038ca1d94ada
Fix #1427.

The copy constructor for Book assumes the list of objects to clone are
scores, which is unsafe since a \book(part) block can also contain markup and
page markers.

* input/regression (book-identifier-markup.ly):

  new regtest

* lily/book.cc (copy constructor):

  treat entries in scores_ separately, cloning Score and Page_marker objects

* lily/include/page-marker.hh, lily/page-marker.cc:

  add copy constructor
input/regression/book-identifier-markup.ly [new file with mode: 0644]
lily/book.cc
lily/include/page-marker.hh
lily/page-marker.cc