[clutter] canvas: fix checking twice for width > 0
- From: Gustavo Noronha Silva <gns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] canvas: fix checking twice for width > 0
- Date: Tue, 26 Jul 2016 10:58:39 +0000 (UTC)
commit ab547c3f9fe6d18244e0f0e56a871fb5f383f111
Author: Gustavo Noronha Silva <gustavo noronha collabora co uk>
Date: Tue Jul 26 12:38:22 2016 +0200
canvas: fix checking twice for width > 0
clutter/clutter-canvas.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-canvas.c b/clutter/clutter-canvas.c
index 00b8c8a..d552f38 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]