[librsvg: 13/15] Rename variable to make it clearer




commit fa4ad0ae017839a434f4236487fcac4f738645b9
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Nov 18 10:21:28 2020 -0600

    Rename variable to make it clearer

 src/drawing_ctx.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/drawing_ctx.rs b/src/drawing_ctx.rs
index de63fd33..0587d1fc 100644
--- a/src/drawing_ctx.rs
+++ b/src/drawing_ctx.rs
@@ -188,7 +188,7 @@ pub fn draw_tree(
     // Preserve the user's transform and use it for the outermost bounding box.  All bounds/extents
     // will be converted to this transform in the end.
     let user_transform = Transform::from(cr.get_matrix());
-    let mut bbox = BoundingBox::new().with_transform(user_transform);
+    let mut user_bbox = BoundingBox::new().with_transform(user_transform);
 
     // https://www.w3.org/TR/SVG2/coords.html#InitialCoordinateSystem
     //
@@ -214,9 +214,9 @@ pub fn draw_tree(
 
     let content_bbox = draw_ctx.draw_node_from_stack(&node, acquired_nodes, &cascaded, false)?;
 
-    bbox.insert(&content_bbox);
+    user_bbox.insert(&content_bbox);
 
-    Ok(bbox)
+    Ok(user_bbox)
 }
 
 impl DrawingCtx {


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