Edje load: add safecheck for TEXTBLOCK-specific code path
authorDaniel Hirt <hirt.danny@gmail.com>
Wed, 20 Jun 2018 16:24:05 +0000 (19:24 +0300)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 20 Jun 2018 21:34:24 +0000 (06:34 +0900)
There is a specific TEXTBLOCK part code path that shouldn't be taken
for other parts.

@fixes T6279

src/lib/edje/edje_load.c

index 1ebbcbe..32660f4 100644 (file)
@@ -1362,7 +1362,8 @@ _edje_object_file_set_internal(Evas_Object *obj, const Eina_File *file, const ch
                                    }
                               }
 
-                            if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
+                            if ((rp->part->type == EDJE_PART_TYPE_TEXTBLOCK) &&
+                                  rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
                               {
                                  // TIZEN_ONLY(20131129): Reuse ecore_imf_context when theme is changed
                                  Ecore_IMF_Context *ic = NULL;