From 517ca1194dc5eeb061ea146d84226f7b6e70515f Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Mon, 24 May 2021 12:00:37 +0200 Subject: [PATCH] bug: fixed a3,a4,a5 format --- src/context.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/context.rs b/src/context.rs index 3e50f10..4ea9986 100644 --- a/src/context.rs +++ b/src/context.rs @@ -117,7 +117,7 @@ impl Context { let line_size = opt.line_size.clone(); // todo : this is not correct - let mm = 3.779527547619048; // calculated with inkscape 1587.40157 (px) / 420 (mm) (from a3) + let mm = 2.8346456693; // 1mm = 2.8346456693pt let (mut height, mut width) = match opt.format { None => (f64::from(opt.height.clone()), f64::from(opt.width.clone())), Some(format) => match &format[..] { @@ -129,6 +129,9 @@ impl Context { }, }; + print!("height: {}\n", height); + print!("width: {}\n", width); + if opt.orientation == "portrait" { let cache = height; height = width;