diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-05 14:49:14 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-05 15:06:42 +0100 |
| commit | f7e8624b4cf31744d600167dd7f3a9d9d1626014 (patch) | |
| tree | 0941c8db497befc47a666d3d1384db4ab9fc5133 /src/library/placed.rs | |
| parent | 4c81a5d43eabd959dbb500a8076f99f21bd037bd (diff) | |
Refactor
Diffstat (limited to 'src/library/placed.rs')
| -rw-r--r-- | src/library/placed.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/placed.rs b/src/library/placed.rs index 8a4f46af..e7b17325 100644 --- a/src/library/placed.rs +++ b/src/library/placed.rs @@ -5,7 +5,7 @@ use super::AlignNode; /// `place`: Place content at an absolute position. pub fn place(_: &mut EvalContext, args: &mut Args) -> TypResult<Value> { - let aligns = args.find().unwrap_or(Spec::new(Some(Align::Left), None)); + let aligns = args.find().unwrap_or(Spec::with_x(Some(Align::Left))); let tx = args.named("dx")?.unwrap_or_default(); let ty = args.named("dy")?.unwrap_or_default(); let body: PackedNode = args.expect("body")?; |
