aboutsummaryrefslogtreecommitdiffstats
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
parentMarkup serializer: split to a base class and remove the legacy one. (diff)
downloadefl-devs/tasn/ifaces.tar.gz
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 *
EOLIAN static void
_efl2_text_attribute_factory_reset(Eo *obj EINA_UNUSED, Efl2_Text_Attribute_Factory_Data *pd)
{
- eina_stringshare_replace(&pd->handle.tag, NULL);
+ eina_stringshare_replace(&pd->handle.tag, "span");
eina_stringshare_replace(&pd->handle.properties, NULL);
pd->handle.ephemeral = EINA_TRUE;
}
@@ -121,7 +121,7 @@ _efl2_text_attribute_factory_remove(Efl2_Text_Attribute_Handle *handle)
EOLIAN static void
_efl2_text_attribute_factory_tag_set(Eo *obj EINA_UNUSED, Efl2_Text_Attribute_Factory_Data *pd, const char *name)
{
- eina_stringshare_replace(&pd->handle.tag, name);
+ eina_stringshare_replace(&pd->handle.tag, (name) ? name : "span");
}
EOLIAN static const char *