forked from AuroraMiddleware/gtk
[Bug 664238] GTK apps crash when dragging something
Corrects a bad condition in a test in fadc82ad
.
This commit is contained in:
parent
2e06f63743
commit
7c77f9a69a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user