Revert "Fix double commit issue in hangul temporarily" 98/75898/1
authorLi Zhang <li2012.zhang@samsung.com>
Thu, 16 Jun 2016 09:18:34 +0000 (17:18 +0800)
committerLi Zhang <li2012.zhang@samsung.com>
Wed, 22 Jun 2016 05:55:38 +0000 (13:55 +0800)
This reverts commit a8d9b38bb783d869708bffc14f04197d779f7711.

Change-Id: I3c62ea33eb53d15f4f195f9089f89b1f226e623c
Signed-off-by: Li Zhang <li2012.zhang@samsung.com>
src/scim_hangul_imengine.cpp

index c83b3b1..2defad7 100644 (file)
@@ -645,16 +645,7 @@ void
 HangulInstance::reset()
 {
     SCIM_DEBUG_IMENGINE(2) << "reset.\n";
-
-    hide_preedit_string();
-
-    WideString wstr = m_preedit;
-    const ucschar *str = hangul_ic_flush(m_hic);
-    while (*str != 0)
-        wstr.push_back (*str++);
-
-    delete_candidates ();
-    m_preedit.clear();
+    flush();
 }
 
 void