diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-10 23:23:50 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-10 23:36:36 +0200 |
| commit | 34fa8df044f1491069c9ae69f1c1e73d635c8955 (patch) | |
| tree | 30b9144690f55f0343a1fdbfcac6c9238c617077 /src/library/layout/align.rs | |
| parent | 29eb13ca6214461a4b0deb63d589cd39ad6d41c2 (diff) | |
Move language-related properties from `par` to `text`
Closes #67
Diffstat (limited to 'src/library/layout/align.rs')
| -rw-r--r-- | src/library/layout/align.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/layout/align.rs b/src/library/layout/align.rs index 699a908c..2a4d039e 100644 --- a/src/library/layout/align.rs +++ b/src/library/layout/align.rs @@ -1,5 +1,5 @@ use crate::library::prelude::*; -use crate::library::text::ParNode; +use crate::library::text::{HorizontalAlign, ParNode}; /// Align a node along the layouting axes. #[derive(Debug, Hash)] @@ -33,7 +33,7 @@ impl Layout for AlignNode { // Align paragraphs inside the child. let mut passed = StyleMap::new(); if let Some(align) = self.aligns.x { - passed.set(ParNode::ALIGN, align); + passed.set(ParNode::ALIGN, HorizontalAlign(align)); } // Layout the child. |
