elm test: Fix non sense check
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 13 Jul 2016 03:02:20 +0000 (12:02 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 13 Jul 2016 03:02:20 +0000 (12:02 +0900)
CID 1353720 1353721

src/bin/elementary/test_gengrid.c

index 92a7b01..f1768e4 100644 (file)
@@ -526,7 +526,7 @@ static void
 _btn_bring_in_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
 {
    api_data *api = data;
-   if (!api && !api->grid) return;
+   if (!api || !api->grid) return;
 
    Elm_Object_Item *it = elm_gengrid_selected_item_get(api->grid);
    if (!it) return;
@@ -537,7 +537,7 @@ static void
 _btn_show_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
 {
    api_data *api = data;
-   if (!api && !api->grid) return;
+   if (!api || !api->grid) return;
 
    Elm_Object_Item *it = elm_gengrid_selected_item_get(api->grid);
    if (!it) return;