From: David Kastrup Date: Sun, 28 Apr 2013 10:53:58 +0000 (+0200) Subject: Let Stencil::align_to abort only if the stencil is empty in the alignment axis X-Git-Tag: release/2.17.19-1~5^2~13 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=15066d8beec430ab889fef51e5cdeeb9eeee83c2;p=lilypond.git Let Stencil::align_to abort only if the stencil is empty in the alignment axis Previously, the emptiness check was not axis specific. --- diff --git a/lily/stencil.cc b/lily/stencil.cc index 078ebbb469..c8985105ea 100644 --- a/lily/stencil.cc +++ b/lily/stencil.cc @@ -251,7 +251,7 @@ Stencil::set_empty (bool e) void Stencil::align_to (Axis a, Real x) { - if (is_empty ()) + if (is_empty (a)) return; Interval i (extent (a));