summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_key.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-10-14 16:49:26 +0800
committerPeng Wu <alexepico@gmail.com>2015-10-14 16:49:26 +0800
commit987b82c533f31d6730c4057b67d6cb59b30d8c74 (patch)
tree927bee2af64908b49a5b0bd4be9a9943af801cbc /src/storage/chewing_key.cpp
parent918cd6a4d934f56bfe07a384c5b2eeb6bf6486c4 (diff)
downloadlibpinyin-987b82c533f31d6730c4057b67d6cb59b30d8c74.tar.gz
libpinyin-987b82c533f31d6730c4057b67d6cb59b30d8c74.tar.xz
libpinyin-987b82c533f31d6730c4057b67d6cb59b30d8c74.zip
update chewing_key.h
Diffstat (limited to 'src/storage/chewing_key.cpp')
-rw-r--r--src/storage/chewing_key.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storage/chewing_key.cpp b/src/storage/chewing_key.cpp
index 26a3642..735a2f0 100644
--- a/src/storage/chewing_key.cpp
+++ b/src/storage/chewing_key.cpp
@@ -96,6 +96,9 @@ gchar * _ChewingKey::get_chewing_string() {
if (CHEWING_ZERO_TONE == m_tone) {
return g_strdup(item.m_zhuyin_str);
+ } else if (CHEWING_1 == m_tone) {
+ /* for first tone, usually not display it. */
+ return g_strdup(item.m_zhuyin_str);
} else {
return g_strdup_printf("%s%s", item.m_zhuyin_str,
chewing_tone_table[m_tone]);