summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/math/lr.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/typst/src/math/lr.rs b/crates/typst/src/math/lr.rs
index f92afbd5..671aa7df 100644
--- a/crates/typst/src/math/lr.rs
+++ b/crates/typst/src/math/lr.rs
@@ -122,10 +122,12 @@ impl LayoutMath for Packed<MidElem> {
MathFragment::Glyph(glyph) => {
let mut new = glyph.clone().into_variant();
new.mid_stretched = Some(false);
+ new.class = MathClass::Fence;
*fragment = MathFragment::Variant(new);
}
MathFragment::Variant(variant) => {
variant.mid_stretched = Some(false);
+ variant.class = MathClass::Fence;
}
_ => {}
}