]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/beaming-pattern.cc
Implement rounded-box whiteout style
[lilypond.git] / lily / beaming-pattern.cc
index 5510965c31f3fcdcd6e103b5795e6bc0dbf21d30..a501c6ad378074f158a1d6fce4fb5aece16c14cc 100644 (file)
@@ -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);
           }
       }
 }