]> git.donarmstrong.com Git - lilypond.git/commit
Make Box::is_empty more selective and create an axis-specific variant
authorDavid Kastrup <dak@gnu.org>
Sat, 27 Apr 2013 12:39:34 +0000 (14:39 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 26 May 2013 00:33:02 +0000 (02:33 +0200)
commit0b9c108e213a6caeb4b40e1306b18700ae608fd4
tree13ce0a9fa4d91558d204c5cde8d18e77fbcd1061
parent1a4ee6dc75714f53e4723552390dfec8f0ad7d04
Make Box::is_empty more selective and create an axis-specific variant

Boxes are not really "empty" just because they show negative
advancement on some axis.  A box is empty if its original dimensions
of (+inf . -inf) are still unchanged for both axes.  And boxes can
make an impact in one axis but not another (pretty much the definition
of spacing), so is_empty can take an axis as argument now.
lily/box.cc
lily/include/box.hh