fix the issue that not showed left cue button
[platform/core/uifw/inputdelegator.git] / src / w-input-stt-voice.cpp
index 1b90386..23160a8 100755 (executable)
@@ -194,7 +194,7 @@ static inline Evas_Coord get_text_block_size(Evas_Object *obj, std::string text)
        if(strbuf) free(strbuf);
        if(tb) evas_object_del(tb);
        if(st) evas_textblock_style_free(st);
-       if(cur) evas_textblock_cursor_free(cur);
+//     if(cur) evas_textblock_cursor_free(cur);
 
        return height;
 }
@@ -1819,6 +1819,12 @@ int init_voice(Evas_Object *parent, const char *lang, VoiceData *r_voicedata)
                return FALSE;
        }
 
+       if (NULL != voicedata->textblock_timer) {
+               PRINTFUNC(DLOG_DEBUG, "delete previous textblock");
+               ecore_timer_del(voicedata->textblock_timer);
+               voicedata->textblock_timer = NULL;
+       }
+
        return TRUE;
 }