From 1254393ac9d87a51510a6cff8132b61e3e7f88bc Mon Sep 17 00:00:00 2001 From: Leedehai <18319900+Leedehai@users.noreply.github.com> Date: Fri, 7 Apr 2023 04:36:13 -0400 Subject: [PATCH] Swap the misplaced top/bottom style (#642) --- library/src/math/attach.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/math/attach.rs b/library/src/math/attach.rs index 1b315f771..5b25a65c6 100644 --- a/library/src/math/attach.rs +++ b/library/src/math/attach.rs @@ -34,14 +34,14 @@ impl LayoutMath for AttachElem { let base = ctx.layout_fragment(&base)?; - ctx.style(ctx.style.for_subscript()); + ctx.style(ctx.style.for_superscript()); let top = self .top(ctx.styles()) .map(|elem| ctx.layout_fragment(&elem)) .transpose()?; ctx.unstyle(); - ctx.style(ctx.style.for_superscript()); + ctx.style(ctx.style.for_subscript()); let bottom = self .bottom(ctx.styles()) .map(|elem| ctx.layout_fragment(&elem))