[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error in resolving number of staff lines
From: |
David Kastrup |
Subject: |
Re: Error in resolving number of staff lines |
Date: |
Fri, 22 Jun 2012 11:33:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Marc Hohl <address@hidden> writes:
> Ok, but in lily/bar-line.cc, Bar_line::compound_barline, the number
> of lines is computed by
>
> int lines = Staff_symbol_referencer::line_count (me)
>
> which is defined as
>
> int
> Staff_symbol_referencer::line_count (Grob *me)
> {
> Grob *st = get_staff_symbol (me);
> return st ? Staff_symbol::line_count (st) : 0;
> }
>
> so the line positions are *not* taken into account, as far as I see.
You don't see far enough.
Staff_symbol::line_count (Grob *me)
{
SCM line_positions = me->get_property ("line-positions");
if (scm_is_pair (line_positions))
return scm_ilength (line_positions);
else
return robust_scm2int (me->get_property ("line-count"), 0);
}
--
David Kastrup
Re: Error in resolving number of staff lines, Phil Holmes, 2012/06/22