[librsvg: 5/10] Stop surfaces requiring points from using user units for --top and --left




commit f3001c0182f598b4fbe280559d434e198f05701d
Author: Daniel Petri Rocha <daniel petri tum de>
Date:   Sun Nov 7 13:26:24 2021 +0100

    Stop surfaces requiring points from using user units for --top and --left

 src/bin/rsvg-convert.rs | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/bin/rsvg-convert.rs b/src/bin/rsvg-convert.rs
index 9e65a695..b1ae791c 100644
--- a/src/bin/rsvg-convert.rs
+++ b/src/bin/rsvg-convert.rs
@@ -535,6 +535,8 @@ impl Converter {
 
                 Format::Pdf | Format::Ps | Format::Eps => {
                     // These surfaces require units in points
+                    unit = LengthUnit::Pt;
+
                     (
                         Size {
                             w: ULength::<Horizontal>::new(natural_size.w, LengthUnit::Px)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]