culprit: always exit the loop if we find a rod, even if it has
distance < 0.
2005-03-11 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/separating-group-spanner.cc (find_rods): oops. Fix the real
+ culprit: always exit the loop if we find a rod, even if it has
+ distance < 0.
+
* lily/ledger-line-spanner.cc (set_spacing_rods): rewrite to O(n)
algorithm.
rod.distance_ = li[RIGHT] - ri[LEFT] + padding;
- if ( rod.distance_ > 0.0)
+ if (rod.distance_ > 0.0)
rod.add_to_cols ();
- else
- break;
+ break;
}
/*
(Y-extent-callback . #f)
(minimum-length-fraction . 0.25)
(length-fraction . 0.25)
- (spacing-procedure . ,Ledger_line_spanner::set_spacing_rods)
+; (spacing-procedure . ,Ledger_line_spanner::set_spacing_rods)
(print-function . ,Ledger_line_spanner::print)
(layer . 0)
(meta . ((interfaces . (spanner-interface ledger-line-interface))))