Fix bug candidate words are not displayed 33/250633/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 30 Dec 2020 11:09:16 +0000 (20:09 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 30 Dec 2020 11:09:16 +0000 (20:09 +0900)
Change-Id: I8643841af8709aef1e5890b6465e3038ae6d30eb
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise.cpp

index ef2e91f..03272fd 100644 (file)
@@ -2437,10 +2437,11 @@ void ise_get_language_locale(char **locale)
 
 void ise_update_table(const vector<string> &vec_str)
 {
-    Candidate *candidate = get_candidate();
-    if (!candidate || !g_softcandidate_show)
+    if (!get_candidate() || !g_softcandidate_show) {
         create_softcandidate();
+    }
 
+    Candidate *candidate = get_candidate();
     if (candidate) {
         candidate->update(vec_str);
     }