]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.1.49
authorfred <fred>
Tue, 26 Mar 2002 21:50:27 +0000 (21:50 +0000)
committerfred <fred>
Tue, 26 Mar 2002 21:50:27 +0000 (21:50 +0000)
lily/slur.cc

index 580974a888e19eac864cceab4a0201a1120f38f1..504219f39305e29893e3552908c85eaba30d6d44 100644 (file)
@@ -331,7 +331,14 @@ Slur::get_encompass_offset_arr () const
   
   // postbreak
   if (broken_edge_b (LEFT))
-    first--;
+    {
+      first--;
+      /*
+        interstaff postbreak: slur begins at height of last note
+       */
+      Encompass_info info (encompass_arr_[0], dir_, this);
+      notes[0][Y_AXIS] += info.interstaff_f_;
+    }
   else
     {
       Encompass_info info (encompass_arr_[0], dir_, this);
@@ -344,6 +351,12 @@ Slur::get_encompass_offset_arr () const
       notes.push (info.o_ - left);
     }
 
+  /*
+    interstaff prebreak: slur ends at height of last note
+   */
+  if (broken_edge_b (RIGHT))
+    d[Y_AXIS] = notes.top ()[Y_AXIS];
+
   notes.push (d);
   
   return notes;