summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2019-10-10 18:15:11 +0300
committerTom Hacohen <tom@stosb.com>2019-10-12 17:52:20 +0300
commitadbdf01c1b74b83f9343444b730d160b2534e480 (patch)
tree72a1ec244ec3f928d721d6016252771bd0e08960
parent4e3584d7cbc79343a351cb91a148e9f87eba7929 (diff)
Attribute factory: default the tag to span if NULL.devs/tasn/ifaces
-rw-r--r--src/lib/evas/canvas/efl_text_attribute_factory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/efl_text_attribute_factory.c b/src/lib/evas/canvas/efl_text_attribute_factory.c
index be6a0b833a..915af4cef1 100644
--- a/src/lib/evas/canvas/efl_text_attribute_factory.c
+++ b/src/lib/evas/canvas/efl_text_attribute_factory.c
@@ -24,7 +24,7 @@ _handle_copy(Efl2_Text_Attribute_Handle *dst, const Efl2_Text_Attribute_Handle *
24EOLIAN static void 24EOLIAN static void
25_efl2_text_attribute_factory_reset(Eo *obj EINA_UNUSED, Efl2_Text_Attribute_Factory_Data *pd) 25_efl2_text_attribute_factory_reset(Eo *obj EINA_UNUSED, Efl2_Text_Attribute_Factory_Data *pd)
26{ 26{
27 eina_stringshare_replace(&pd->handle.tag, NULL); 27 eina_stringshare_replace(&pd->handle.tag, "span");
28 eina_stringshare_replace(&pd->handle.properties, NULL); 28 eina_stringshare_replace(&pd->handle.properties, NULL);
29 pd->handle.ephemeral = EINA_TRUE; 29 pd->handle.ephemeral = EINA_TRUE;
30} 30}
@@ -121,7 +121,7 @@ _efl2_text_attribute_factory_remove(Efl2_Text_Attribute_Handle *handle)
121EOLIAN static void 121EOLIAN static void
122_efl2_text_attribute_factory_tag_set(Eo *obj EINA_UNUSED, Efl2_Text_Attribute_Factory_Data *pd, const char *name) 122_efl2_text_attribute_factory_tag_set(Eo *obj EINA_UNUSED, Efl2_Text_Attribute_Factory_Data *pd, const char *name)
123{ 123{
124 eina_stringshare_replace(&pd->handle.tag, name); 124 eina_stringshare_replace(&pd->handle.tag, (name) ? name : "span");
125} 125}
126 126
127EOLIAN static const char * 127EOLIAN static const char *