]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie.cc
Fix 1092 -- Thanks to Joe for the idea about how to handle it right
[lilypond.git] / lily / tie.cc
index 563e2ca938873c06e4876586552f81112f2cd207..a3083a1d7c36fc0892bfb373654dcce70c3833e7 100644 (file)
@@ -74,12 +74,18 @@ Tie::head (Grob *me, Direction d)
 int
 Tie::get_column_rank (Grob *me, Direction d)
 {
+  Grob *col = 0;
   Spanner *span = dynamic_cast<Spanner *> (me);
-  Grob *h = head (me, d);
-  if (!h)
-    h = span->get_bound (d);
+  if (!span)
+    col = dynamic_cast<Item *> (me)->get_column ();
+  else
+    {
+      Grob *h = head (me, d);
+      if (!h)
+        h = span->get_bound (d);
 
-  Grob *col = dynamic_cast<Item *> (h)->get_column ();
+      col = dynamic_cast<Item *> (h)->get_column ();
+    }
   return Paper_column::get_rank (col);
 }