]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.28
authorfred <fred>
Sun, 24 Mar 2002 19:30:30 +0000 (19:30 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:30:30 +0000 (19:30 +0000)
src/localkeyitem.cc
src/script.cc

index 383f875d42b8e3657427541253d1948c446334d6..c61f1b91afa3a3366aa63748bac5f83adef7c4f6 100644 (file)
@@ -15,7 +15,7 @@ void
 Local_key_item::add(Item*head_l)
 {
     group.push(head_l);
-    dependencies.push(head_l);
+    add_depedency(head_l);
 }
 void
 Local_key_item::add(Melodic_req*m_l)
index f9155ea0c41e88fe9e1299278227ec6d00d86f05..4b1ae191d04008c06a32d21b63dbde9ea3b88695 100644 (file)
@@ -11,14 +11,14 @@ void
 Script::set_stem(Stem*st_l)
 {
     stem_l_ = st_l;
-    dependencies.push(st_l);
+    add_depedency(st_l);
 }
 
 void
 Script::set_support(Item*i)
 {
     support.push(i);
-    dependencies.push(i);
+    add_depedency(i);
 }
 
 Script::Script(Script_req* rq, int staflen)
@@ -68,7 +68,7 @@ Script::set_default_pos()
        Interval v= support_height();
        y = v[dir]  -dy[-dir] + 2*dir*inter_f;
     } else {
-       Real y  = (d > 0) ? staffsize + 2: -2; // ug
+       y  = (d > 0) ? staffsize + 2: -2; // ug
        y *=inter_f;
        Interval v= support_height();
 
@@ -78,6 +78,7 @@ Script::set_default_pos()
            y = y <? v.min();
        }
     }
+    
     if (stem_l_) {
        Interval v= stem_l_->height();