- SCM righttrim_scm = sp->get_grob_property("right-trim-amount");
- if (gh_number_p (righttrim_scm)) {
- righttrim = gh_scm2double (righttrim_scm);
- }
+
+
+ /*
+ If we're broken, we shouldn't extend past the end of the line.
+ */
+ if (r->break_status_dir () == CENTER)
+ {
+ SCM righttrim_scm = sp->get_grob_property ("right-trim-amount");
+ if (gh_number_p (righttrim_scm))
+ {
+ righttrim = gh_scm2double (righttrim_scm);
+ }
+ }
+