X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpaper-score.cc;h=65ac88333d18f705ae63de740f5f777bd8140079;hb=2628c3c9950b6abbb7bd74747726f8c01340e032;hp=611af4125c353adb203479ed80971bbdf00fcce2;hpb=eac874ad80855c7f8372c7893394fd63371a7be1;p=lilypond.git diff --git a/lily/paper-score.cc b/lily/paper-score.cc index 611af4125c..65ac88333d 100644 --- a/lily/paper-score.cc +++ b/lily/paper-score.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1996--2010 Han-Wen Nienhuys + Copyright (C) 1996--2012 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -78,14 +78,14 @@ Paper_score::find_break_indices () const for (vsize i = 0; i < cols_.size (); i++) { - Item *it = dynamic_cast (cols_[i]); + Item *it = dynamic_cast (cols_[i]); if (Paper_column::is_breakable (cols_[i]) - && (i == 0 || it->find_prebroken_piece (LEFT)) - && (i == cols_.size () - 1 || it->find_prebroken_piece (RIGHT))) - { - break_indices_.push_back (i); - break_ranks_.push_back (it->get_column ()->get_rank ()); - } + && (i == 0 || it->find_prebroken_piece (LEFT)) + && (i == cols_.size () - 1 || it->find_prebroken_piece (RIGHT))) + { + break_indices_.push_back (i); + break_ranks_.push_back (it->get_column ()->get_rank ()); + } } } @@ -97,7 +97,7 @@ Paper_score::get_break_indices () const return break_indices_; } -vector +vector Paper_score::get_columns () const { if (cols_.empty ()) @@ -131,10 +131,9 @@ Paper_score::calc_breaking () void Paper_score::process () { - if (be_verbose_global) - message (_f ("Element count %d (spanners %d) ", - system_->element_count (), - system_->spanner_count ())); + debug_output (_f ("Element count %d (spanners %d) ", + system_->element_count (), + system_->spanner_count ())); message (_ ("Preprocessing graphical objects...")); @@ -167,9 +166,8 @@ Paper_score::get_paper_systems () return paper_systems_; } - Paper_score * unsmob_paper_score (SCM x) { - return dynamic_cast (unsmob_music_output (x)); + return dynamic_cast (unsmob_music_output (x)); }