Penultimate system spacing problem

Every now and then, the second-to-last system will be abnormally spaced: usually just one bar, or much fewer than the systems on either side. There’s no Breaks of any kind.

Here’s a screenshot.

I’ve got “fill the last system” on, so that may have something to do with it. It’s easy to fix with a few breaks, but thought I’d mention it.

I expect this will be down to the somewhat crude algorithm Dorico uses to try to ensure that the last system doesn’t end up unbalanced. It goes back a certain number of systems (the fewer the players in the system, the more systems it goes back) to try to even out the number of bars on each of those systems. It’s pretty crude, so that’s why you sometimes get results like this. In the fullness of time we plan to revisit this and see if we can find a way to implement a more globally optimal solution for casting off, provided we can make it sufficiently performant.