source file of the GNU LilyPond music typesetter
- (c) 1996--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1996--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "spanner.hh"
-#include <math.h>
#include "pointer-group-interface.hh"
#include "libc-extension.hh"
}
else
{
- Link_array<Item> break_points = pscore_->root_system ()->broken_col_range (left, right);
+ System *root = get_root_system (this);
+ Link_array<Item> break_points = root->broken_col_range (left, right);
break_points.insert (left, 0);
break_points.push (right);
We check for System to prevent the column -> line_of_score
-> column -> line_of_score -> etc situation */
if (d == LEFT && !dynamic_cast<System *> (this))
- {
- set_parent (i, X_AXIS);
- }
+ set_parent (i, X_AXIS);
/*
Signal that this column needs to be kept alive. They need to be
*/
if (dynamic_cast<Paper_column *> (i))
- {
- Pointer_group_interface::add_grob (i, ly_symbol2scm ("bounded-by-me"), this);
- }
+ Pointer_group_interface::add_grob (i, ly_symbol2scm ("bounded-by-me"), this);
}
Spanner::Spanner (SCM s, Object_key const *key)
int
Spanner::compare (Spanner *const &p1, Spanner *const &p2)
{
- return p1->get_system ()->get_rank() - p2->get_system ()->get_rank();
+ return p1->get_system ()->get_rank () - p2->get_system ()->get_rank ();
}
bool
}
/*
- Return I such that SP == SP->ORIGINAL_->BROKEN_INTOS_[I].
+ Return I such that SP == SP->ORIGINAL ()->BROKEN_INTOS_[I].
*/
int
broken_spanner_index (Spanner *sp)
{
- Spanner *parent = dynamic_cast<Spanner *> (sp->original_);
+ Spanner *parent = dynamic_cast<Spanner *> (sp->original ());
return parent->broken_intos_.find_index (sp);
}