From 63b8ccba955c1d1e274f377c6db9c65dd719ae62 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 30 Dec 2019 23:39:10 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20looping=20bug=20=F0=9F=9A=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/line.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/layout/line.rs b/src/layout/line.rs index 5aae7dcd0..8f4873198 100644 --- a/src/layout/line.rs +++ b/src/layout/line.rs @@ -108,6 +108,11 @@ impl LineLayouter { if !self.line_is_empty() { self.finish_line()?; } else { + if self.stack.space_is_last() && self.stack.space_is_empty() { + error!("cannot fit box of size {} into usable size of {}", + layout.dimensions, self.usable()); + } + self.finish_space(true)?; } }