]> git.donarmstrong.com Git - lilypond.git/commit
ledger-line-spanner.cc: refactor Ledger_line_spanner::print
authorPaul Morris <paulwmorris@gmail.com>
Thu, 14 Apr 2016 02:10:26 +0000 (22:10 -0400)
committerPaul Morris <paulwmorris@gmail.com>
Tue, 19 Apr 2016 14:14:12 +0000 (10:14 -0400)
commitb184142c53b8139a2535df1d2049129d61878d61
tree354eafefdbc94a3750d7e78beac72fed9db2a001
parente16ba770b846b3dae8c4f2d14425a04691799db0
ledger-line-spanner.cc: refactor Ledger_line_spanner::print

Optimizations and removal of code duplication.

Only iterate through all note heads once, generating
all relevant data for just note heads involved in
ledger lines.  Then work with that data.

Merge overlapping ledger data before producing
ledger stencils so we only produce one stencil for
each ledger line.
lily/ledger-line-spanner.cc