From e74b6fa5b1ce11feefc10dae63d30785fde1d7b9 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 8 Aug 2016 16:48:56 +0800 Subject: fixes pinyin_get_character_offset function --- src/pinyin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pinyin.cpp b/src/pinyin.cpp index 4b90257..fd00940 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -2506,7 +2506,7 @@ static bool _get_char_offset_recur(pinyin_instance_t * instance, gfloat pinyin_poss = item.get_pronunciation_possibility(&key); if (pinyin_poss < FLT_EPSILON) - return false; + continue; ++length; -- cgit