bug: fixed a3,a4,a5 format
This commit is contained in:
parent
dfb6e0789e
commit
517ca1194d
1 changed files with 4 additions and 1 deletions
|
@ -117,7 +117,7 @@ impl Context {
|
||||||
let line_size = opt.line_size.clone();
|
let line_size = opt.line_size.clone();
|
||||||
|
|
||||||
// todo : this is not correct
|
// 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 {
|
let (mut height, mut width) = match opt.format {
|
||||||
None => (f64::from(opt.height.clone()), f64::from(opt.width.clone())),
|
None => (f64::from(opt.height.clone()), f64::from(opt.width.clone())),
|
||||||
Some(format) => match &format[..] {
|
Some(format) => match &format[..] {
|
||||||
|
@ -129,6 +129,9 @@ impl Context {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
print!("height: {}\n", height);
|
||||||
|
print!("width: {}\n", width);
|
||||||
|
|
||||||
if opt.orientation == "portrait" {
|
if opt.orientation == "portrait" {
|
||||||
let cache = height;
|
let cache = height;
|
||||||
height = width;
|
height = width;
|
||||||
|
|
Loading…
Reference in a new issue