From ad7bf630084124f01b2a317190001453b49a4a6b Mon Sep 17 00:00:00 2001 From: hanwen Date: Mon, 25 Oct 2004 20:55:09 +0000 Subject: [PATCH] (LY_DEFINE): for ragged, we can end with all springs tight, and still satisfy the constraints. --- ChangeLog | 5 +++++ lily/simple-spacer.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5dbb46b742..f57954dcd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-25 Han-Wen Nienhuys + + * lily/simple-spacer.cc (LY_DEFINE): for ragged, we can end with + all springs tight, and still satisfy the constraints. + 2004-10-25 Werner Lemberg * scripts/lilypond-book.py: s/option-sep/option_sep/. diff --git a/lily/simple-spacer.cc b/lily/simple-spacer.cc index 3026e48895..eb20f0b1da 100644 --- a/lily/simple-spacer.cc +++ b/lily/simple-spacer.cc @@ -308,7 +308,7 @@ LY_DEFINE(ly_solve_spring_rod_problem, "ly:solve-spring-rod-problem", SCM force_return = SCM_BOOL_F; if (!isinf (spacer.force_) - && spacer.is_active ()) + && (spacer.is_active () || is_ragged)) { force_return = scm_from_double (spacer.force_); } -- 2.39.5