summaryrefslogtreecommitdiff
path: root/library/src/math/accent.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-12 12:53:50 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-12 13:20:36 +0100
commitad05ba59256a67f429b71a8aba2cd92ed2cafac7 (patch)
tree019ccf26f7308d907c042624ccbb647f76d3491b /library/src/math/accent.rs
parent2720a44b965d29e9c3453c732e38554fdb6413bb (diff)
Spans in math
Diffstat (limited to 'library/src/math/accent.rs')
-rw-r--r--library/src/math/accent.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/math/accent.rs b/library/src/math/accent.rs
index 03caf411..9ef76279 100644
--- a/library/src/math/accent.rs
+++ b/library/src/math/accent.rs
@@ -66,7 +66,7 @@ impl LayoutMath for AccentNode {
// Forcing the accent to be at least as large as the base makes it too
// wide in many case.
let Accent(c) = self.accent();
- let glyph = GlyphFragment::new(ctx, c);
+ let glyph = GlyphFragment::new(ctx, c, self.span());
let short_fall = ACCENT_SHORT_FALL.scaled(ctx);
let variant = glyph.stretch_horizontal(ctx, base.width(), short_fall);
let accent = variant.frame;