From: Carl Sorensen Date: Tue, 6 Jul 2010 03:41:56 +0000 (-0600) Subject: Fix 1092 -- Thanks to Joe for the idea about how to handle it right X-Git-Tag: release/2.13.27-1^2~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9c054920138ed227902983362b3b493a499caf7a;p=lilypond.git Fix 1092 -- Thanks to Joe for the idea about how to handle it right --- diff --git a/lily/tie.cc b/lily/tie.cc index 563e2ca938..a3083a1d7c 100644 --- a/lily/tie.cc +++ b/lily/tie.cc @@ -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 (me); - Grob *h = head (me, d); - if (!h) - h = span->get_bound (d); + if (!span) + col = dynamic_cast (me)->get_column (); + else + { + Grob *h = head (me, d); + if (!h) + h = span->get_bound (d); - Grob *col = dynamic_cast (h)->get_column (); + col = dynamic_cast (h)->get_column (); + } return Paper_column::get_rank (col); }