summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeedehai <18319900+Leedehai@users.noreply.github.com>2023-04-07 04:36:13 -0400
committerGitHub <noreply@github.com>2023-04-07 10:36:13 +0200
commit1254393ac9d87a51510a6cff8132b61e3e7f88bc (patch)
tree08119010e905286f9544e6dc591630ce71852f93
parent40f77eaafabc62054eeef7330f778f0fc6a2ecdc (diff)
Swap the misplaced top/bottom style (#642)
-rw-r--r--library/src/math/attach.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/math/attach.rs b/library/src/math/attach.rs
index 1b315f77..5b25a65c 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))