summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/math/op.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/math/op.rs')
-rw-r--r--crates/typst-library/src/math/op.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-library/src/math/op.rs b/crates/typst-library/src/math/op.rs
index 152efdf5..b4c36002 100644
--- a/crates/typst-library/src/math/op.rs
+++ b/crates/typst-library/src/math/op.rs
@@ -32,7 +32,7 @@ impl LayoutMath for OpElem {
#[tracing::instrument(skip(ctx))]
fn layout_math(&self, ctx: &mut MathContext) -> SourceResult<()> {
let fragment =
- ctx.layout_text(&TextElem::new(self.text()).spanned(self.span()))?;
+ ctx.layout_text(&TextElem::new(self.text().clone()).spanned(self.span()))?;
ctx.push(
FrameFragment::new(ctx, fragment.into_frame())
.with_class(MathClass::Large)