Fix looping bug 🚧

This commit is contained in:
Laurenz 2019-12-30 23:39:10 +01:00
parent 269f069a4d
commit 63b8ccba95

View File

@ -108,6 +108,11 @@ impl LineLayouter {
if !self.line_is_empty() { if !self.line_is_empty() {
self.finish_line()?; self.finish_line()?;
} else { } 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)?; self.finish_space(true)?;
} }
} }