summaryrefslogtreecommitdiff
path: root/clutter/clutter-canvas.c
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gustavo.noronha@collabora.co.uk>2016-07-26 12:38:22 +0200
committerGustavo Noronha Silva <gustavo.noronha@collabora.co.uk>2016-07-26 12:38:22 +0200
commitab547c3f9fe6d18244e0f0e56a871fb5f383f111 (patch)
tree485383a9b95f547e2896ced62002829659d4978c /clutter/clutter-canvas.c
parent40bbab84ba08630415a04e1762de66cab7902e3d (diff)
downloadclutter-ab547c3f9fe6d18244e0f0e56a871fb5f383f111.tar.gz
canvas: fix checking twice for width > 0
Diffstat (limited to 'clutter/clutter-canvas.c')
-rw-r--r--clutter/clutter-canvas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/clutter-canvas.c b/clutter/clutter-canvas.c
index 00b8c8a1c..d552f3841 100644
--- a/clutter/clutter-canvas.c
+++ b/clutter/clutter-canvas.c
@@ -401,7 +401,7 @@ clutter_canvas_emit_draw (ClutterCanvas *self)
gboolean res;
cairo_t *cr;
- g_assert (priv->width > 0 && priv->width > 0);
+ g_assert (priv->width > 0 && priv->height > 0);
priv->dirty = TRUE;