From cfe1806bdbbd8ce110b5a0f187cc3b43d0b8850f Mon Sep 17 00:00:00 2001 From: mkorje Date: Tue, 10 Jun 2025 20:54:09 +1000 Subject: [PATCH] Inline a stylechain access --- crates/typst-layout/src/math/text.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/typst-layout/src/math/text.rs b/crates/typst-layout/src/math/text.rs index 02b5b5cc4..192380f18 100644 --- a/crates/typst-layout/src/math/text.rs +++ b/crates/typst-layout/src/math/text.rs @@ -153,9 +153,8 @@ fn adjust_glyph_layout( ctx: &mut MathContext, styles: StyleChain, ) { - let math_size = EquationElem::size_in(styles); if glyph.class == MathClass::Large { - if math_size == MathSize::Display { + if EquationElem::size_in(styles) == MathSize::Display { let height = scaled!(ctx, styles, display_operator_min_height) .max(SQRT_2 * glyph.size.y); glyph.stretch_vertical(ctx, height);