[librsvg] Morphology: shorten code



commit 77d6d779065a49d16a47c1da1c887166a519cf51
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Jan 11 07:52:10 2020 +0100

    Morphology: shorten code

 rsvg_internals/src/filters/morphology.rs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/filters/morphology.rs b/rsvg_internals/src/filters/morphology.rs
index ca4cd0d1..dc26e8f0 100644
--- a/rsvg_internals/src/filters/morphology.rs
+++ b/rsvg_internals/src/filters/morphology.rs
@@ -90,8 +90,7 @@ impl FilterEffect for FeMorphology {
         let (rx, ry) = ctx.paffine().transform_distance(rx, ry);
 
         // The radii can become negative here due to the transform.
-        let rx = rx.abs();
-        let ry = ry.abs();
+        let (rx, ry) = (rx.abs(), ry.abs());
 
         let mut output_surface = cairo::ImageSurface::create(
             cairo::Format::ARgb32,


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