summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-12-02 13:00:05 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-12-02 13:00:05 -0800
commit22d9c590901e121936f50dee97dc60c4f7defb63 (patch)
tree3aee183d528ff8783ab931b6f14f5100588fad92
parente02c30fac32e4873240e507cadc416f710188feb (diff)
ShapeEllipseOrRoundedRectangle: Check height AND width, not width twice
Fixed to match check in ShapeOval() https://bugs.freedesktop.org/show_bug.cgi?id=72245 Fixes cppcheck warning: [ShapeWidg.c:204]: (style) Same expression on both sides of '||'. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/ShapeWidg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ShapeWidg.c b/src/ShapeWidg.c
index 32388ee..3ca7116 100644
--- a/src/ShapeWidg.c
+++ b/src/ShapeWidg.c
@@ -201,7 +201,7 @@ ShapeEllipseOrRoundedRectangle(Widget w, Bool ellipse, int ew, int eh)
GC gc;
unsigned long mask;
- if (width < 3 || width < 3)
+ if (width < 3 || height < 3)
return;
width += w->core.border_width << 1;
height += w->core.border_width << 1;