[librsvg: 20/22] Rename variable




commit d64936f42a1956fa989214c187df9cae6aedae32
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Sep 23 11:47:39 2021 -0500

    Rename variable
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/593>

 src/text.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/text.rs b/src/text.rs
index 61096e84..4994227b 100644
--- a/src/text.rs
+++ b/src/text.rs
@@ -142,15 +142,15 @@ impl PositionedChunk {
 
             let baseline = f64::from(layout.baseline()) / f64::from(pango::SCALE);
             let baseline_shift = values.baseline_shift().0.to_user(&params);
-            let offset = baseline + baseline_shift;
+            let baseline_offset = baseline + baseline_shift;
 
             let dx = mspan.dx;
             let dy = mspan.dy;
 
             let rendered_position = if values.writing_mode().is_horizontal() {
-                (x + dx, y - offset + dy)
+                (x + dx, y - baseline_offset + dy)
             } else {
-                (x + offset + dx, y + dy)
+                (x + baseline_offset + dx, y + dy)
             };
 
             let positioned_span = PositionedSpan {


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