[librsvg/rustification] rsvg-shapes: Stylistic fix
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustification] rsvg-shapes: Stylistic fix
- Date: Tue, 13 Dec 2016 20:09:41 +0000 (UTC)
commit 1a30e53a1ee2946f9e090b0f965d5926cad4297d
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Dec 13 14:09:12 2016 -0600
rsvg-shapes: Stylistic fix
Pointed out by Coverity.
rsvg-shapes.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/rsvg-shapes.c b/rsvg-shapes.c
index 31bb1c7..6b79a40 100644
--- a/rsvg-shapes.c
+++ b/rsvg-shapes.c
@@ -346,15 +346,10 @@ _rsvg_node_rect_draw (RsvgNode * self, RsvgDrawingCtx * ctx, int dominate)
if (w == 0. || h == 0.)
return;
- if (rect->got_rx)
- rx = rx;
- else
- rx = ry;
-
- if (rect->got_ry)
- ry = ry;
- else
+ if (rect->got_rx && !rect->got_ry)
ry = rx;
+ else if (!rect->got_rx && rect->got_ry)
+ rx = ry;
half_w = w / 2;
half_h = h / 2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]