summaryrefslogtreecommitdiff
path: root/library/src/math/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-12 22:04:27 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-12 22:04:27 +0100
commitfd90736fb6239409210f845a8589ba3d6b849ef3 (patch)
treec1993400b177f35b3622cc3fdf6c0f53d805bb69 /library/src/math/mod.rs
parentd99359dede8f366fc16d38c6166b97a0f56fe0cb (diff)
Support fractional width for `box`
Diffstat (limited to 'library/src/math/mod.rs')
-rw-r--r--library/src/math/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs
index 76dcdc2e..84af15cb 100644
--- a/library/src/math/mod.rs
+++ b/library/src/math/mod.rs
@@ -277,7 +277,7 @@ impl LayoutMath for Content {
}
if let Some(node) = self.to::<HNode>() {
- if let Spacing::Relative(rel) = node.amount {
+ if let Spacing::Rel(rel) = node.amount {
if rel.rel.is_zero() {
ctx.push(MathFragment::Spacing(rel.abs.resolve(ctx.styles())));
}