fix the issue that not showed left cue button 03/81103/3
authorsungwook79.park <sungwook79.park@samsung.com>
Fri, 22 Jul 2016 05:15:38 +0000 (14:15 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Fri, 22 Jul 2016 07:58:56 +0000 (16:58 +0900)
Change-Id: I9e8ee6b7961bd294d2f681aa26d0bc2faff1f88f
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
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;
 }