From 9c054920138ed227902983362b3b493a499caf7a Mon Sep 17 00:00:00 2001 From: Carl Sorensen Date: Mon, 5 Jul 2010 21:41:56 -0600 Subject: [PATCH] Fix 1092 -- Thanks to Joe for the idea about how to handle it right --- lily/tie.cc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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); } -- 2.39.2