From: Mike Solomon Date: Thu, 12 May 2011 23:28:24 +0000 (-0400) Subject: Fixes the assert problem caused by ledger line spanners. X-Git-Tag: release/2.13.63-1~11 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2af79ed9faa94c8a289d0dbde9cc936bb51103f0;p=lilypond.git Fixes the assert problem caused by ledger line spanners. This fix makes it such that ledger lines are not printed when there is a no-line staff symbol. This makes sense, as a note cannot be above or below the staff if the staff does not exist, which means that ledger lines should not be used. --- diff --git a/lily/ledger-line-spanner.cc b/lily/ledger-line-spanner.cc index 49ff711911..a518bc9225 100644 --- a/lily/ledger-line-spanner.cc +++ b/lily/ledger-line-spanner.cc @@ -320,7 +320,7 @@ Ledger_line_spanner::print (SCM smob) Item *h = dynamic_cast (heads[i]); int pos = Staff_symbol_referencer::get_rounded_position (h); - if (!staff_extent.contains (pos - sign (pos))) + if (!staff_extent.contains (pos - sign (pos)) && !staff_extent.is_empty ()) { Interval head_size = h->extent (common[X_AXIS], X_AXIS); Interval ledger_size = head_size;