summaryrefslogtreecommitdiffstats
path: root/src/ZYZBopomofoSymbolSection.cc
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2014-07-07 16:44:04 +0800
committerPeng Wu <alexepico@gmail.com>2014-07-07 16:44:04 +0800
commite5bbbdea08662eb91f6f0be941235bde6bf7c935 (patch)
tree2fecebfdebd8307bcefc3607d0e70a92e33d549e /src/ZYZBopomofoSymbolSection.cc
parent5e1ef814ff33081705ea126b83fee6495c4de4bc (diff)
downloadibus-libzhuyin-e5bbbdea08662eb91f6f0be941235bde6bf7c935.tar.gz
ibus-libzhuyin-e5bbbdea08662eb91f6f0be941235bde6bf7c935.tar.xz
ibus-libzhuyin-e5bbbdea08662eb91f6f0be941235bde6bf7c935.zip
fixes a bug
Diffstat (limited to 'src/ZYZBopomofoSymbolSection.cc')
-rw-r--r--src/ZYZBopomofoSymbolSection.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ZYZBopomofoSymbolSection.cc b/src/ZYZBopomofoSymbolSection.cc
index 7ccf5f6..8c34831 100644
--- a/src/ZYZBopomofoSymbolSection.cc
+++ b/src/ZYZBopomofoSymbolSection.cc
@@ -41,6 +41,8 @@ bool
BopomofoSymbolSection::initCandidates (zhuyin_instance_t * instance,
const String & lookup)
{
+ m_candidates.clear ();
+
assert (1 == lookup.length ());
m_lookup = lookup;
const char key = lookup[0];