elm_genlist: fix recursive call of genlist eo api 58/115058/2
authorWonki Kim <wonki_.kim@samsung.com>
Thu, 16 Feb 2017 06:35:30 +0000 (15:35 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Thu, 16 Feb 2017 07:32:45 +0000 (16:32 +0900)
when user call elm_genlist_policy_set,
It causes stack overflow because policy_set api calls itself.

this commit modifies the policy_set api to call
its parent method body rather than itself.

Change-Id: Id5b56bc351c53e5ae38a31a6b69841e763db0acb
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
src/mobile_lib/elm_genlist.c

index b08d1b0e9f1f91d644959b4abcaedba4736c871c..8b36b1820c222ec1cb8a74bba0478a265e347b65 100644 (file)
@@ -8193,7 +8193,7 @@ _elm_genlist_elm_interface_scrollable_policy_set(Eo *obj, Elm_Genlist_Data *sd E
        (policy_v >= ELM_SCROLLER_POLICY_LAST))
      return;
 
-   eo_do(obj, elm_interface_scrollable_policy_set(policy_h, policy_v));
+   eo_do_super(obj, MY_CLASS, elm_interface_scrollable_policy_set(policy_h, policy_v));
 }
 
 EAPI void