[librsvg] render_element_to_viewport(): Fix the origin of the initial vbox



commit 77d68bf42a4a32506c4d12b9c79dcf96d309243d
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Feb 20 09:02:37 2019 -0600

    render_element_to_viewport(): Fix the origin of the initial vbox

 rsvg_internals/src/handle.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/handle.rs b/rsvg_internals/src/handle.rs
index d43acac1..11d0b483 100644
--- a/rsvg_internals/src/handle.rs
+++ b/rsvg_internals/src/handle.rs
@@ -567,8 +567,8 @@ impl Handle {
         let dimensions = svg.get_intrinsic_dimensions();
 
         let vbox = dimensions.vbox.unwrap_or_else(|| ViewBox {
-            x: viewport.x,
-            y: viewport.y,
+            x: 0.0,
+            y: 0.0,
             width: viewport.width,
             height: viewport.height,
         });


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