lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in resolving number of staff lines


From: Marc Hohl
Subject: Re: Error in resolving number of staff lines
Date: Sat, 23 Jun 2012 10:08:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

Am 22.06.2012 11:33, schrieb David Kastrup:
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);
}

Ah, sorry - thanks for clarification!

Regards,

Marc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]