}
void
-Break_algorithm::set_pscore(PScore*s)
+Break_algorithm::set_pscore(Paper_score*s)
{
pscore_l_ = s;
linelength = s->paper_l_->linewidth_f();
class Break_algorithm {
protected:
- PScore *pscore_l_;
+ Paper_score *pscore_l_;
Real linelength;
/// search all pcols which are breakable.
Line_spacer* (*get_line_spacer)();
Break_algorithm();
- void set_pscore(PScore*);
+ void set_pscore(Paper_score*);
/// check if the spacing/breaking problem is well-stated
void problem_OK()const;
void
Span_bar_engraver::acknowledge_element(Score_elem_info i)
{
- if ( i.origin_grav_l_arr_.size() > 1 &&
- i.elem_l_->is_type_b( Bar::static_name() ) ) {
+ int depth = i.origin_grav_l_arr_.size();
+ if ( depth > 1
+ && i.elem_l_->is_type_b( Bar::static_name() ) )
+ {
bar_l_arr_.push( (Bar*)i.elem_l_->item() );
if (bar_l_arr_.size() >= 2 && !spanbar_p_) {
for (int i=0; i < bar_l_arr_.size() ; i++)
spanbar_p_->add(bar_l_arr_[i]);
spanbar_p_->set( valign_l_ );
- typeset_breakable_item(spanbar_p_);
+ typeset_element(spanbar_p_);
spanbar_p_ =0;
}
bar_l_arr_.set_size( 0);