edje: return default description depends on RTL when description doesn't exist 63/68263/1
authorSoohye Shin <soohye.shin@samsung.com>
Fri, 4 Mar 2016 23:53:53 +0000 (15:53 -0800)
committerMinchul Lee <slotus.lee@samsung.com>
Tue, 3 May 2016 07:08:03 +0000 (16:08 +0900)
Summary:
If not found edje part description, edje just set default description in spite of RTL status.
This adds to call function for getting the correct description as RTL status.

Reviewers: raster, Hermet, cedric

Subscribers: minkyu, sju27, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3735

Change-Id: I493b590d5517d32a6d32d31cdf065e41e4e8fa8f
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/edje/edje_calc.c

index ca0fee2..e492c1c 100644 (file)
@@ -675,7 +675,9 @@ _edje_part_description_apply(Edje *ed, Edje_Real_Part *ep, const char *d1, doubl
 
    epd1 = _edje_part_description_find(ed, ep, d1, v1, EINA_TRUE);
    if (!epd1)
-     epd1 = ep->part->default_desc;  /* never NULL */
+     epd1 = _edje_get_description_by_orientation(ed, ep->part->default_desc,
+                                                 &ep->part->default_desc_rtl,
+                                                ep->type); /* never NULL */
 
    if (d2)
      epd2 = _edje_part_description_find(ed, ep, d2, v2, EINA_TRUE);