From: fred Date: Wed, 27 Mar 2002 00:59:53 +0000 (+0000) Subject: lilypond-1.3.145 X-Git-Tag: release/1.5.59~803 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b66c812d46416d09b3017acf106cb9196cd94e2f;p=lilypond.git lilypond-1.3.145 --- diff --git a/lily/hyphen-spanner.cc b/lily/hyphen-spanner.cc index 433a107ba6..cd676ff44a 100644 --- a/lily/hyphen-spanner.cc +++ b/lily/hyphen-spanner.cc @@ -37,7 +37,11 @@ Hyphen_spanner::brew_molecule (SCM smob) do { - bounds[d] = sp->get_bound (d)->extent (common, X_AXIS)[-d]; + Interval iv = sp->get_bound (d)->extent (common, X_AXIS); + + bounds[d] = iv.empty_b () + ? sp->get_bound (d)->relative_coordinate (common, X_AXIS) + : iv[-d]; } while (flip (&d) != LEFT);