]> git.donarmstrong.com Git - lilypond.git/commitdiff
ledger-lines: horizontal space only when present
authorKeith OHara <k-ohara5a5a@oco.net>
Sat, 28 Dec 2013 21:40:45 +0000 (13:40 -0800)
committerKeith OHara <k-ohara5a5a@oco.net>
Sat, 4 Jan 2014 04:20:35 +0000 (20:20 -0800)
lily/ledger-line-spanner.cc

index de88ba402f6518fa44f068b3c431ce975fc25f69..213675da09489b12bf075c371f0bfd7c4c54b2cc 100644 (file)
@@ -100,7 +100,7 @@ Ledger_line_spanner::set_spacing_rods (SCM smob)
       Item *h = heads[i];
 
       int pos = Staff_symbol_referencer::get_rounded_position (h);
-      if (staff_extent.contains (pos))
+      if  (Staff_symbol::ledger_positions (staff, pos).empty ())
         continue;
 
       /* Ambitus heads can appear out-of-order in heads[],