diff options
author | Jaeun Choi <jaeun12.choi@samsung.com> | 2019-01-25 13:38:49 +0900 |
---|---|---|
committer | Jaeun Choi <jaeun12.choi@samsung.com> | 2019-01-25 14:26:12 +0900 |
commit | 26ed4c277634d9b247e4054bbc960ca86a5f804e (patch) | |
tree | 62b84881bfd0b49c033cdc218a04bb31d6675ddb /src/lib/elementary/efl_page_indicator_icon.c | |
parent | 719b129dde91532d07211735de8c48c0d38c7e4f (diff) |
efl_page_indicator_icon: fix update function
pd->adj is NULL if pos equals 0
Diffstat (limited to '')
-rw-r--r-- | src/lib/elementary/efl_page_indicator_icon.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_page_indicator_icon.c b/src/lib/elementary/efl_page_indicator_icon.c index 7ec69a8237..9ac40aa364 100644 --- a/src/lib/elementary/efl_page_indicator_icon.c +++ b/src/lib/elementary/efl_page_indicator_icon.c | |||
@@ -36,11 +36,15 @@ _efl_page_indicator_icon_update(Eo *obj, | |||
36 | 36 | ||
37 | if (pos < 0) | 37 | if (pos < 0) |
38 | pd->adj = eina_list_nth(pd->items, (spd->curr_idx - 1 + spd->cnt) % spd->cnt); | 38 | pd->adj = eina_list_nth(pd->items, (spd->curr_idx - 1 + spd->cnt) % spd->cnt); |
39 | else | 39 | else if (pos > 0) |
40 | pd->adj = eina_list_nth(pd->items, (spd->curr_idx + 1 + spd->cnt) % spd->cnt); | 40 | pd->adj = eina_list_nth(pd->items, (spd->curr_idx + 1 + spd->cnt) % spd->cnt); |
41 | else pd->adj = NULL; | ||
41 | 42 | ||
42 | eina_value_set(pd->v, delta); | 43 | if (pd->adj) |
43 | efl_layout_signal_message_send(pd->adj, 1, *(pd->v)); | 44 | { |
45 | eina_value_set(pd->v, delta); | ||
46 | efl_layout_signal_message_send(pd->adj, 1, *(pd->v)); | ||
47 | } | ||
44 | } | 48 | } |
45 | 49 | ||
46 | EOLIAN static void | 50 | EOLIAN static void |