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
|
|
@ -53,7 +53,7 @@ mod imp_page {
|
|||
fn snapshot(&self, snapshot: >k::Snapshot) {
|
||||
snapshot.save();
|
||||
|
||||
let scale = self.print().user_scale() * self.display_scale();
|
||||
let scale = self.print().user_scale_original() * self.display_scale();
|
||||
let margin_left = self.print().effective_margin_left() * self.display_scale();
|
||||
let margin_top = self.print().effective_margin_top() * self.display_scale();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue