[gtk+/gtk-3-2] [Bug 664238] GTK apps crash when dragging something
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-2] [Bug 664238] GTK apps crash when dragging something
- Date: Sun, 20 Nov 2011 18:41:19 +0000 (UTC)
commit 22db419f523e9b3704d137a2d9a2dc06a138629c
Author: John Ralls <jralls ceridwen us>
Date: Sat Nov 19 11:33:28 2011 -0800
[Bug 664238] GTK apps crash when dragging something
Corrects a bad condition in a test in 9d900681
gtk/gtkquartz.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkquartz.c b/gtk/gtkquartz.c
index 5d43766..766be70 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]