diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-29 17:44:58 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-29 17:44:58 +0100 |
| commit | 17f8939f8631104737b928ddeebb401134da1f6e (patch) | |
| tree | 3778f15ca44ce596857870febafbfba4e3ef90f7 /library/src/math/stack.rs | |
| parent | 60dfe8f8931ca0a18f07e281bdd9751fe61e5adf (diff) | |
Fix math alignment points
Diffstat (limited to 'library/src/math/stack.rs')
| -rw-r--r-- | library/src/math/stack.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/src/math/stack.rs b/library/src/math/stack.rs index c8a1252c..ec233cd9 100644 --- a/library/src/math/stack.rs +++ b/library/src/math/stack.rs @@ -290,8 +290,10 @@ pub(super) fn stack( let mut height = rows.len().saturating_sub(1) as f64 * gap; let points = alignments(&rows); - let rows: Vec<_> = - rows.into_iter().map(|row| row.to_line_frame(ctx, &points)).collect(); + let rows: Vec<_> = rows + .into_iter() + .map(|row| row.to_line_frame(ctx, &points, align)) + .collect(); for row in &rows { height += row.height(); |
