]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix 1092 -- Thanks to Joe for the idea about how to handle it right
authorCarl Sorensen <c_sorensen@byu.edu>
Tue, 6 Jul 2010 03:41:56 +0000 (21:41 -0600)
committerCarl Sorensen <c_sorensen@byu.edu>
Tue, 6 Jul 2010 03:43:51 +0000 (21:43 -0600)
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);
 }