From 5827aa5fe64d59d5747779f7c568b20918a743ff Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Wed, 23 Dec 2009 01:00:11 -0800 Subject: [PATCH] Don't crash if vertical spacing is called early. This provides some more robustness against problems of the sort that was fixed in 64aa24acd2. --- lily/align-interface.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lily/align-interface.cc b/lily/align-interface.cc index f090cfd1e0..e9d47a77ec 100644 --- a/lily/align-interface.cc +++ b/lily/align-interface.cc @@ -240,9 +240,13 @@ void 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 -- 2.39.2