]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/collision.cc
release: 0.0.57
[lilypond.git] / lily / collision.cc
index 53c64fed95e50568ce17fdf1d9630bf81668eb28..64ceafe19a3c2a09ac8ce26dfe6f159a73f67adb 100644 (file)
@@ -52,11 +52,16 @@ Collision::do_pre_processing()
     
     for (int i=0; i < clash_l_arr_.size(); i++) {
        Note_column* c_l = clash_l_arr_[i];
+       if (! c_l->dir_i_) {
+           warning ("No stem direction set. Ignoring column in clash. ");
+           continue;
+       }
        int d = (c_l->dir_i_);
        
        clash_group_arr_a[idx(d, c_l->h_shift_b_)].push(c_l);
     }
     
+    
     for (int j=0; j < 4; j++) {
        if (clash_group_arr_a[j].size() > 1) {
            warning("Too many clashing notecolumns. Ignoring them.");