summaryrefslogtreecommitdiff
path: root/library/src/math/frac.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-02 16:47:10 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-02 16:47:10 +0100
commite9ff2d6463bf26cb0bbafb747bf8a77800687e3f (patch)
tree810d28ba35557acacf987d08c2000e2e643cbe4e /library/src/math/frac.rs
parente6400861ab5c4d7ab437901b2334e5822c2693a5 (diff)
More robust automatic math spacing
Diffstat (limited to 'library/src/math/frac.rs')
-rw-r--r--library/src/math/frac.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/math/frac.rs b/library/src/math/frac.rs
index 9f7fb9d0..283686c8 100644
--- a/library/src/math/frac.rs
+++ b/library/src/math/frac.rs
@@ -153,7 +153,7 @@ fn layout(
if binom {
ctx.push(GlyphFragment::new(ctx, '(').stretch_vertical(ctx, height, short_fall));
- ctx.push(frame);
+ ctx.push(FrameFragment::new(ctx, frame));
ctx.push(GlyphFragment::new(ctx, ')').stretch_vertical(ctx, height, short_fall));
} else {
frame.push(
@@ -165,7 +165,7 @@ fn layout(
}),
),
);
- ctx.push(frame);
+ ctx.push(FrameFragment::new(ctx, frame));
}
Ok(())