gail: don't try to get stock id from images that aren't stock
Fixes assertion caused by 41d2a4d059
			
			
This commit is contained in:
		| @ -146,9 +146,11 @@ gail_image_get_name (AtkObject *accessible) | ||||
|   g_free (image_accessible->stock_name); | ||||
|   image_accessible->stock_name = NULL; | ||||
|  | ||||
|   if (gtk_image_get_storage_type (image) != GTK_IMAGE_STOCK) | ||||
|     return NULL; | ||||
|  | ||||
|   gtk_image_get_stock (image, &stock_id, NULL); | ||||
|   if (gtk_image_get_storage_type (image) != GTK_IMAGE_STOCK || | ||||
|       stock_id == NULL) | ||||
|   if (stock_id == NULL) | ||||
|     return NULL; | ||||
|  | ||||
|   if (!gtk_stock_lookup (stock_id, &stock_item)) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 William Jon McCann
					William Jon McCann