DescriptionBecause item pure heights are cached, the logic in Accidental_interface::pure_height doesn't work. The possibility to have multiple pure height results is eliminated by the caching.
This patch adds the property recalculate-pure-height to the Item interface
in order to signal that recalculating should be done. Currently, this is
only relevant for accidentals but in theory could be used for any item.
This way, we can retain the benefits of caching for most items while
recalculating pure heights of items whose height changes either with different
start and end points or whose estimation gets more accurate over the
compilation process.
Patch Set 1 #Patch Set 2 : Fixes item.cc logic #
MessagesTotal messages: 2
|