Popup: don't set wrap type if ELM_WRAP_NONE is given

If ELM_WRAP_NONE is forbidden, the internal variable should not be set
if this value is given as parameter.
This commit is contained in:
Daniel Zaoui 2016-04-05 08:39:26 +03:00
parent 4d9a19a1d5
commit a7400abbf6
1 changed files with 1 additions and 1 deletions

View File

@ -1607,7 +1607,7 @@ EOLIAN static void
_elm_popup_content_text_wrap_type_set(Eo *obj EINA_UNUSED, Elm_Popup_Data *sd, Elm_Wrap_Type wrap)
{
//Need to wrap the content text, so not allowing ELM_WRAP_NONE
if (sd->content_text_wrap_type == ELM_WRAP_NONE) return;
if (wrap == ELM_WRAP_NONE) return;
sd->content_text_wrap_type = wrap;
if (sd->text_content_obj)