This provides some more robustness against problems of the sort that
was fixed in
64aa24acd2.
Align_interface::align_elements_to_ideal_distances (Grob *me)
{
System *sys = me->get_system ();
- Page_layout_problem layout (NULL, SCM_EOL, scm_list_1 (sys->self_scm ()));
-
- layout.solution (true);
+ if (sys)
+ {
+ Page_layout_problem layout (NULL, SCM_EOL, scm_list_1 (sys->self_scm ()));
+ layout.solution (true);
+ }
+ else
+ programming_error ("vertical alignment called before line breaking");
}
void