lilypond-devel
[Top][All Lists]
Advanced

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

Re: SCM/bool confusion in One_page_breaking::solve (issue 314490043 by a


From: paulwmorris
Subject: Re: SCM/bool confusion in One_page_breaking::solve (issue 314490043 by address@hidden)
Date: Sun, 19 Feb 2017 19:04:54 -0800

On 2017/02/18 20:20:27, dak wrote:

Actually I didn't.  I just put the finishing touches on a task mainly
done by
Valentin that made it possible to enable a debugging option in Guile,
and the
compiler then dug this one up in consequence as well as a few others.

Ah, cool, nice to have these checks.  I gave it a try with the new
change to the code and it still works as intended.

I think the reason this did not show up as a problem before is that this
part of the code is a defensive measure against a rare edge case where
the last musical system (or top-level-markup) in the data structure does
not produce the lowest visual point of the 'music' on the page
(excluding footers, etc.).

I looked back at the test file I was using locally while working on
this, and found an example that seems to cover this edge case.  However,
it appears to work fine with or without the newest change to the code...
 So it's possible that this code is more defensive than it needs to be,
but it's also possible that removing the defensive measure might lead to
bugs in other edge cases, and it doesn't hurt to have it in there.  So I
think it's better to leave it as is and err on the defensive side.

I can upload a regtest for that edge case in another patch.

https://codereview.appspot.com/314490043/



reply via email to

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