From 963f73d36934002d5152c6f8e40f0a9d9c1fa80c Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 4 Aug 2015 11:07:17 +0800 Subject: update parse_one_key method --- src/storage/pinyin_parser2.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index bdbe385..86e25a7 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -1307,6 +1307,8 @@ bool ChewingDirectParser2::parse_one_key(pinyin_option_t options, /* save back tone if available. */ key.m_tone = tone; g_free(chewing); + + assert(tone != CHEWING_ZERO_TONE); return true; } -- cgit