Inline a stylechain access

This commit is contained in:
mkorje 2025-06-10 20:54:09 +10:00
parent eebe26ea83
commit cfe1806bdb
No known key found for this signature in database

View File

@ -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);