/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2000--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 2000--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
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
" or bottom to top. For vertical alignments of staves, the"
" @code{break-system-details} of the left"
" @rinternals{NonMusicalPaperColumn} may be set to tune"
- " vertical spacing. Set @code{alignment-extra-space} to add"
- " extra space for staves. Set"
- " @code{fixed-alignment-extra-space} to force staves in"
- " @code{PianoStaff}s further apart.",
+ " vertical spacing.",
/* properties */
"align-dir "