Comment #6 on issue 1056 by shingarov: Pure-height of stems does not accurately estimate height
http://code.google.com/p/lilypond/issues/detail?id=1056

Hi Neil,

The extent of a transparent grob is exactly the same as if it were visible:
it still takes up space, so you'd expect both invisible.ly
(with Stem #'length = 0 disabled) to look the same as visible.ly.

I stepped through the execution of both Stem::pure_height() and Stem::height() in the debugger. It is not true that the vertical extent of a transparent stem is the same as the height of a visible stem. In the "visible.ly"/"invisible.ly" examples, the extent of the visible stem is (-4.18:-6.5), invisible is (-4.0:-4.18). The pure extent of invisible stem is (-4.0:-6.5) -- exactly the same as in the visible case.
(So the estimation is off by 14 times).

So as a temporary solution, I would try just looking at the "transparent" property inside Stem::pure_height(), and return an empty Interval, or I guess better a
zero-length Interval at whereever the translation happens to be.
Any suggestion on what the more permanent / more correct fix would be?


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to