print: Adjust 100% to SVG physical dimensions
Some SVGs store there size in cm or inch. With this change, the 100% in the print dialog is calculated according to that physical size. Closes #141
This commit is contained in:
parent
04dfed4678
commit
d138750448
5 changed files with 45 additions and 22 deletions
|
|
@ -227,7 +227,7 @@ mod imp {
|
|||
|
||||
if let Some(image) = obj.image() {
|
||||
match image.dimension_details() {
|
||||
ImageDimensionDetails::Svg(string) => Some(string),
|
||||
ImageDimensionDetails::Svg(string, _) => Some(string),
|
||||
_ => {
|
||||
let (width, height) = image.image_size();
|
||||
if width > 0 && height > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue