diff options
author | John Ralls <jralls@ceridwen.us> | 2011-11-19 11:33:28 -0800 |
---|---|---|
committer | John Ralls <jralls@ceridwen.us> | 2011-11-20 10:35:40 -0800 |
commit | eafff409c9992637edc6270ec07d4985b322931c (patch) | |
tree | 4bc9ec95436608edc4c1546e67bca1dfb8bf66d3 /gtk/gtkquartz.c | |
parent | aa17b2c57813674b3b16b10b167067076f072c8d (diff) | |
download | gtk+-eafff409c9992637edc6270ec07d4985b322931c.tar.gz |
[Bug 664238] GTK apps crash when dragging something
Corrects a bad condition in a test in 085b98f4
Diffstat (limited to 'gtk/gtkquartz.c')
-rw-r--r-- | gtk/gtkquartz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkquartz.c b/gtk/gtkquartz.c index 30261ff324..e98dbb4527 100644 --- a/gtk/gtkquartz.c +++ b/gtk/gtkquartz.c @@ -39,7 +39,7 @@ _gtk_quartz_create_image_from_pixbuf (GdkPixbuf *pixbuf) pixbuf_width = gdk_pixbuf_get_width (pixbuf); pixbuf_height = gdk_pixbuf_get_height (pixbuf); - g_return_val_if_fail (pixbuf_width == 0 || pixbuf_height == 0, NULL); + g_return_val_if_fail (pixbuf_width != 0 && pixbuf_height != 0, NULL); rowstride = gdk_pixbuf_get_rowstride (pixbuf); has_alpha = gdk_pixbuf_get_has_alpha (pixbuf); |