+2006-03-21 Han-Wen Nienhuys <lilydev@localhost.localdomain>
+
+ * lily/slur-configuration.cc (add_score): disallow negative slur
+ scores.
+
2006-03-21 Han-Wen Nienhuys <hanwen@xs4all.nl>
* scm/framework-ps.scm (dump-stencil-as-EPS): remove debugging code.
void
Slur_configuration::add_score (Real s, string desc)
{
+ if (s < 0)
+ {
+ programming_error ("Negative demerits found for slur. Ignoring");
+ s = 0.0;
+ }
+
if (s)
{
score_card_ += to_string ("%s=%.2f ", desc.c_str (), s);