nonempty interval.
+2004-08-02 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * lily/text-spanner.cc (print): only take linear_combination of
+ nonempty interval.
+
+
2004-08-02 Pedro Kroger <kroeger@pedrokroeger.net>
* scm/page-layout.scm (default-page-make-stencil): If leftmargin
pad = robust_scm2double (me->get_property ("bound-padding"), 0.0);
encl = -d;
}
-
- span_points[d] = -d * pad + b->extent (common, X_AXIS).linear_combination (encl);
+
+ Interval ext = b->extent (common, X_AXIS);
+ span_points[d] = -d * pad +
+ (ext.is_empty ())
+ ? b->relative_coordinate (common, X_AXIS)
+ : ext.linear_combination (encl);
}
}
while (flip (&d) != LEFT);
else
{
Real encl = robust_scm2double (me->get_property ("enclose-bounds"), 0.0);
- span_points[d] = b->extent (common, X_AXIS).linear_combination (d * encl);
+ Interval ext = b->extent (common, X_AXIS);
+
+ span_points[d] =
+ (ext.is_empty())
+ ? b->relative_coordinate (common, X_AXIS)
+ : ext.linear_combination (d * encl);
if (is_number_pair (shorten))
span_points -= d * ly_scm2double (index_get_cell (shorten, d));