From 15066d8beec430ab889fef51e5cdeeb9eeee83c2 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 28 Apr 2013 12:53:58 +0200 Subject: [PATCH] Let Stencil::align_to abort only if the stencil is empty in the alignment axis Previously, the emptiness check was not axis specific. --- lily/stencil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.5