diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-09 21:22:23 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-09 21:22:23 +0100 |
| commit | c38d55614af0226be8eb3f3e1500da8b7be2fec8 (patch) | |
| tree | 88ab7d81cbb849d8592baf32a4e5de5a8c9e36ab /library/src/math/mod.rs | |
| parent | cd089b6194c57b2e8dff70efaa7cbd53035f7327 (diff) | |
A few math fixes
Diffstat (limited to 'library/src/math/mod.rs')
| -rw-r--r-- | library/src/math/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs index 62432b12..317bc1d4 100644 --- a/library/src/math/mod.rs +++ b/library/src/math/mod.rs @@ -61,7 +61,8 @@ impl Layout for MathNode { ) -> SourceResult<Fragment> { let mut t = Texifier::new(styles); self.texify(&mut t)?; - layout_tex(vt, &t.finish(), self.display, styles) + Ok(layout_tex(vt, &t.finish(), self.display, styles) + .unwrap_or(Fragment::frame(Frame::new(Size::zero())))) } } |
