From 04ec5bc737424459b69bdf6df05ab466f1d2eff9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 27 Sep 2020 17:11:26 +0100 Subject: [PATCH] fix layout algorithm Signed-off-by: Ian Jackson --- src/bin/otter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 6009a3f3..a76934e9 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -778,7 +778,7 @@ mod library_add { self.top = self.cbot; self.clhs = self.lhs; }; - self.cbot = min(self.cbot, self.top + h); + self.cbot = max(self.cbot, self.top + h); if self.cbot > self.bot { None? } let ttopleft = PosC([tlhs, self.top]); -- 2.30.2