summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
Diffstat (limited to 'src/export')
-rw-r--r--src/export/pdf.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/export/pdf.rs b/src/export/pdf.rs
index 5e8896f7..c050bfc5 100644
--- a/src/export/pdf.rs
+++ b/src/export/pdf.rs
@@ -333,14 +333,14 @@ impl<'a> PdfExporter<'a> {
.action_type(ActionType::Uri)
.uri(Str(uri.as_str().as_bytes()));
}
- Destination::Internal(page, point) => {
- let page = page - 1;
- let height = page_heights[page];
+ Destination::Internal(loc) => {
+ let index = loc.page - 1;
+ let height = page_heights[index];
link.action()
.action_type(ActionType::GoTo)
.destination_direct()
- .page(page_refs[page])
- .xyz(point.x.to_f32(), height - point.y.to_f32(), None);
+ .page(page_refs[index])
+ .xyz(loc.pos.x.to_f32(), height - loc.pos.y.to_f32(), None);
}
}
}