carl.d.soren...@gmail.com schrieb:
Looks good to me, with the exception of the hardcoded value stuff.
Thanks,
Carl
http://codereview.appspot.com/181144/diff/4008/5018
File lily/bar-line.cc (right):
http://codereview.appspot.com/181144/diff/4008/5018#newcode242
lily/bar-line.cc:242: m.add_at_edge (X_AXIS, RIGHT, thick, 2.5 *
staff_space + 2 * thinkern); // Urg, hardcoded value
If you are going to use the hardcoded value (which I think is not a good
idea; you can call ly_stencil_extent to get the width of the segno
stencil), then I think it would be better to define a local variable for
your hardcoded value, i.e.
float segno_width = 2.5 * staff_space // Urg, hardcoded value
so that it's clear what the 2.5 is for.
I used Patrick's proposal and it seems to work fine (see the uploaded
patch set).
Moreover, I compiled lilypond a dozen times yesterday, and today, make
failed
because I "forgot" the closing >"< on several lines, but these chars
definitely
were already missing yesterday.
Marc
http://codereview.appspot.com/181144/show
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel