summaryrefslogtreecommitdiff
path: root/library/src/layout
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/layout')
-rw-r--r--library/src/layout/page.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/library/src/layout/page.rs b/library/src/layout/page.rs
index 8ad76387..962e8a16 100644
--- a/library/src/layout/page.rs
+++ b/library/src/layout/page.rs
@@ -2,7 +2,7 @@ use std::ptr;
use std::str::FromStr;
use super::{AlignNode, ColumnsNode};
-use crate::meta::{Counter, CounterAction, CounterNode, Numbering};
+use crate::meta::{Counter, CounterAction, CounterKey, CounterNode, Numbering};
use crate::prelude::*;
/// Layouts its child onto one or multiple pages.
@@ -311,9 +311,12 @@ impl PageNode {
let header_ascent = self.header_ascent(styles);
let footer = self.footer(styles).or_else(|| {
self.numbering(styles).map(|numbering| {
- CounterNode::new(Counter::Page, CounterAction::Both(numbering))
- .pack()
- .aligned(self.number_align(styles))
+ CounterNode::new(
+ Counter::new(CounterKey::Page),
+ CounterAction::Both(numbering),
+ )
+ .pack()
+ .aligned(self.number_align(styles))
})
});
let footer_descent = self.footer_descent(styles);