X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbeaming-pattern.cc;h=a501c6ad378074f158a1d6fce4fb5aece16c14cc;hb=ed3e5abd8003297e02e3f90dc8755e33a6619135;hp=5510965c31f3fcdcd6e103b5795e6bc0dbf21d30;hpb=207f71b8b2ab9ca550e841615bedce393e652ca6;p=lilypond.git diff --git a/lily/beaming-pattern.cc b/lily/beaming-pattern.cc index 5510965c31..a501c6ad37 100644 --- a/lily/beaming-pattern.cc +++ b/lily/beaming-pattern.cc @@ -21,8 +21,6 @@ #include "beaming-pattern.hh" #include "misc.hh" -using std::vector; - /* Represents a stem belonging to a beam. Sometimes (for example, if the stem belongs to a rest and stemlets aren't used) the stem will be invisible. @@ -177,7 +175,7 @@ Beaming_pattern::beamify (Beaming_options const &options) infos_[i + non_flag_dir].count (-non_flag_dir)), infos_[i - non_flag_dir].count (non_flag_dir)); - infos_[i].beam_count_drul_[non_flag_dir] = count; + infos_[i].beam_count_drul_[non_flag_dir] = max(count, 1); } } }