[librsvg] Morphology: shorten code
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Morphology: shorten code
- Date: Sat, 11 Jan 2020 16:06:56 +0000 (UTC)
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]