]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.7
authorfred <fred>
Sun, 24 Mar 2002 19:53:36 +0000 (19:53 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:53:36 +0000 (19:53 +0000)
lily/collision-grav.cc
lily/include/item.hh
lily/rest-collision-grav.cc

index 2a4903d10518cc72127d769d39c03e3a8ce5bd26..8eaa7cd30f45bde0d633d2a26e540da5ad47fc99 100644 (file)
@@ -16,9 +16,10 @@ Collision_engraver::acknowledge_element(Score_elem_info i)
     if (!(i.elem_l_->name() == Note_column::static_name()))
        return;
 
-    if (!col_p_)
+    if (!col_p_) {
        col_p_ = new Collision;
-    
+       announce_element(Score_elem_info(col_p_,0));
+    }
     col_p_->add((Note_column*)i.elem_l_->item());
 }
 
index dcbae6374fc33f0f35b615e3d9f02dc63b073217..0768c5885ebc2a49e6c64a6d754dd105151c1448 100644 (file)
@@ -14,7 +14,7 @@
 #include "score-elem.hh"
 
 /**
- a horizontally fixed size element of the score
+  A horizontally fixed size element of the score.
 
   Item is the datastructure for printables whose width is known
   before the spacing is calculated
@@ -30,7 +30,10 @@ public:
     
     Item * broken_to_a_[2];
 
-    // nobreak = 0, pre =1, post = 2
+    /// should be put in a breakable col.
+    bool breakable_b_;
+    int break_status_i_;
+    /// nobreak = 0, pre = -1, post = 1
     int break_status_i()const;
     Item * find_prebroken_piece(PCol*)const;
     Item * find_prebroken_piece(Line_of_score*)const;    
@@ -47,7 +50,6 @@ protected:
     virtual void do_print()const;
 
     void copy_breakable_items();
-
 };
 
 
index 29fdac1a3d47c3ef1df153725ad2852152cd768e..bf18c12e1ad3a2c5f344c1060b4aad33e711cc4e 100644 (file)
@@ -31,8 +31,10 @@ Rest_collision_engraver::acknowledge_element(Score_elem_info i)
     } 
     else if (nC == Note_column::static_name()) {
        // what should i do, what should _engraver do?
-       if (!rest_collision_p_)
+       if (!rest_collision_p_) {
            rest_collision_p_ = new Rest_collision;
+           announce_element(Score_elem_info(rest_collision_p_, 0));
+       }
        rest_collision_p_->add((Note_column*)i.elem_l_->item());
     }
     else if (nC == Rest_column::static_name()) {