diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-10-28 16:43:38 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-10-28 16:43:38 +0200 |
| commit | 95e9134a3c7d7a14d8c8928413fdffc665671895 (patch) | |
| tree | 822b5f6c2d23aba33cfe4d199405e493e37c3d70 /src/model/content.rs | |
| parent | 66030ae5d73d85a0463562230b87f8ec7554c746 (diff) | |
Refactor `geom` module
Diffstat (limited to 'src/model/content.rs')
| -rw-r--r-- | src/model/content.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/content.rs b/src/model/content.rs index 428865f3..3ee59ecc 100644 --- a/src/model/content.rs +++ b/src/model/content.rs @@ -15,7 +15,7 @@ use super::{ }; use crate::diag::{SourceResult, StrResult}; use crate::frame::{Frame, Role}; -use crate::geom::{Length, Numeric}; +use crate::geom::{Abs, Numeric}; use crate::library::layout::{FlowChild, FlowNode, PageNode, PlaceNode, Spacing}; use crate::library::structure::{DocNode, ListItem, ListNode, DESC, ENUM, LIST}; use crate::library::text::{ParChild, ParNode}; @@ -175,7 +175,7 @@ impl Content { } /// Add weak vertical spacing above and below the node. - pub fn spaced(self, above: Option<Length>, below: Option<Length>) -> Self { + pub fn spaced(self, above: Option<Abs>, below: Option<Abs>) -> Self { if above.is_none() && below.is_none() { return self; } |
