source file of the GNU LilyPond music typesetter
- (c) 1996--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1996--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "break-algorithm.hh"
#include "paper-column.hh"
#include "cpu-timer.hh"
#include "simple-spacer.hh"
-#include "group-interface.hh"
Array<int>
Break_algorithm::find_break_indices () const
{
- Link_array<Grob> all = pscore_->system_->columns ();
+ Link_array<Grob> all = pscore_->root_system ()->columns ();
Array<int> retval;
for (int i = 0; i < all.size (); i++)
Link_array<Grob>
Break_algorithm::find_breaks () const
{
- Link_array<Grob> all = pscore_->system_->columns ();
+ Link_array<Grob> all = pscore_->root_system ()->columns ();
Link_array<Grob> retval;
for (int i = 0; i < all.size (); i++)
sort out how interfacing this should work;
*/
if (line.is_empty ())
- {
- sp->line_len_ = -1;
- }
+ sp->line_len_ = -1;
else
sp->line_len_ = line.length ();
Break_algorithm::set_pscore (Paper_score *s)
{
pscore_ = s;
- linewidth_ = s->layout_->get_dimension (ly_symbol2scm ("linewidth"));
+ linewidth_ = s->layout ()->get_dimension (ly_symbol2scm ("linewidth"));
}
Array<Column_x_positions>
return h;
}
+Break_algorithm::~Break_algorithm ()
+{
+}