From df171ccade00817b4d6fd41ca6f59001c6a11776 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Sat, 15 Mar 2014 15:36:41 +0900 Subject: [PATCH] entry - fixed calc issue of the wrap none mode. This deferred recalc job is considered for wrap mode. if the wrap mode is disabled, this job should be discarded. since the wrap mode is enabled in default. the job would be performed even the wrap mode was changed later. @fix. --- src/lib/elm_entry.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 4e38664..de1b20f 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -3965,6 +3965,11 @@ _line_wrap_set(Eo *obj, void *_pd, va_list *list) if (sd->line_wrap == wrap) return; sd->last_w = -1; sd->line_wrap = wrap; + if (wrap == ELM_WRAP_NONE) + { + ecore_job_del(sd->deferred_recalc_job); + sd->deferred_recalc_job = NULL; + } eo_do(obj, elm_wdg_theme_apply(NULL)); } -- 2.7.4