+ /*
+ For raggedright without ragged staffs, simply set width to the linewidth.
+
+ (ok -- lousy UI, since width is in staff spaces)
+
+ --hwn.
+ */
+ SCM width_scm = me->get_grob_property ("width");
+ if (gh_number_p (width_scm))
+ {
+
+ /*
+ don't multiply by Staff_symbol_referencer::staff_space (me),
+ since that would make aligning staff symbols of different sizes to
+ one right margin hell.
+ */
+ width = gh_scm2double (width_scm);
+ }
+ else
+ {
+ width = sp->get_bound (RIGHT)->relative_coordinate (common , X_AXIS);
+ }
+
+ // respect indentation, if any
+ width -= sp->get_bound (LEFT)->relative_coordinate (common, X_AXIS);
+
+ if (width < 0)
+ {
+ warning (_f ("staff symbol: indentation yields beyond end of line"));
+ width = 0;
+ }
+
+ Real t = me->get_paper ()->get_realvar (ly_symbol2scm ("linethickness"));
+ t *= robust_scm2double ( me->get_grob_property("thickness"), 1.0);
+