]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie.cc
* scm/define-grobs.scm (all-grob-descriptions): put ledger lines
[lilypond.git] / lily / tie.cc
index c2610d6f6fb00be2aaaf78ccd45457d5b4dbba97..569aa220ad9cc9ec0cc35afe8b150a5000337e2b 100644 (file)
@@ -65,6 +65,18 @@ Tie::head (Grob*me, Direction d)
     return 0;
 }
 
+int
+Tie::get_column_rank (Grob *me, Direction d)
+{
+  Spanner *span = dynamic_cast<Spanner*> (me); 
+  Grob * h = head (me, d);
+  if (!h)
+    h = span->get_bound (d);
+
+  Grob *col = dynamic_cast<Item*> (h)->get_column ();
+  return Paper_column::get_rank (col);
+}
+
 Real
 Tie::get_position (Grob*me) 
 {