diff options
Diffstat (limited to 'library/src/math/row.rs')
| -rw-r--r-- | library/src/math/row.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/library/src/math/row.rs b/library/src/math/row.rs index 1271e49e..b7720c14 100644 --- a/library/src/math/row.rs +++ b/library/src/math/row.rs @@ -103,7 +103,7 @@ impl MathRow { pub fn to_frame(self, ctx: &MathContext) -> Frame { let styles = ctx.styles(); - let align = styles.get(AlignNode::ALIGNS).x.resolve(styles); + let align = styles.get(AlignNode::ALIGNMENT).x.resolve(styles); self.to_aligned_frame(ctx, &[], align) } @@ -200,10 +200,7 @@ impl MathRow { } } -impl<T> From<T> for MathRow -where - T: Into<MathFragment>, -{ +impl<T: Into<MathFragment>> From<T> for MathRow { fn from(fragment: T) -> Self { Self(vec![fragment.into()]) } |
