diff options
| author | Max <me@mkor.je> | 2024-12-08 16:55:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-08 16:55:34 +0000 |
| commit | 468a60103dca9c6788be2207c9785d5ba771c800 (patch) | |
| tree | d8f8e9597e2f5d1ed1e38d8d9b1e5a81d211fd10 /crates/typst-layout/src/math/underover.rs | |
| parent | 57f7c167d867094660077d3da75a0207497aa36e (diff) | |
Fix multiline annotations in over- elems in math changing the baseline (#5459)
Diffstat (limited to 'crates/typst-layout/src/math/underover.rs')
| -rw-r--r-- | crates/typst-layout/src/math/underover.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-layout/src/math/underover.rs b/crates/typst-layout/src/math/underover.rs index b1d4825b..1a2c8db6 100644 --- a/crates/typst-layout/src/math/underover.rs +++ b/crates/typst-layout/src/math/underover.rs @@ -297,7 +297,7 @@ fn layout_underoverspreader( if let Some(annotation) = annotation { let under_style = style_for_subscript(styles); let annotation_styles = styles.chain(&under_style); - rows.push(ctx.layout_into_run(annotation, annotation_styles)?); + rows.extend(ctx.layout_into_run(annotation, annotation_styles)?.rows()); } 0 } @@ -305,7 +305,7 @@ fn layout_underoverspreader( if let Some(annotation) = annotation { let over_style = style_for_superscript(styles); let annotation_styles = styles.chain(&over_style); - rows.push(ctx.layout_into_run(annotation, annotation_styles)?); + rows.extend(ctx.layout_into_run(annotation, annotation_styles)?.rows()); } rows.push(stretched.into()); rows.push(MathRun::new(vec![body])); |
