From 20cef0cea7407e95daedc36c612dfcfa8339b48d Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 14 Dec 2011 13:41:56 +0800 Subject: fixes phrase index --- src/storage/phrase_index.cpp | 4 ++-- 1 file 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); -- cgit