diff options
Diffstat (limited to 'src/storage/phrase_index.cpp')
-rw-r--r-- | src/storage/phrase_index.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp index 294cd00..9fec159 100644 --- a/src/storage/phrase_index.cpp +++ b/src/storage/phrase_index.cpp @@ -476,8 +476,8 @@ bool FacadePhraseIndex::load_text(guint8 phrase_index, FILE * infile){ parser.parse(options, keys, key_rests, pinyin, strlen(pinyin)); - assert(item_ptr->get_phrase_length() == keys->len); - item_ptr->append_pronunciation((ChewingKey *)keys->data, freq); + if (item_ptr->get_phrase_length() == keys->len) + item_ptr->append_pronunciation((ChewingKey *)keys->data, freq); g_array_free(keys, TRUE); g_array_free(key_rests, TRUE); |