/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1997--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 1997--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
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);
}