aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-03-07 18:20:45 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-07 18:20:45 -0800
commit36e2abdd3be1a2492f0816ec0fb4da96abf3d395 (patch)
treeb10d22892bfa86368c999a492ec58952c0c335c7
parentb84046a3bab147ee9b38c2be9ab196b2badb1ac0 (diff)
parent463418385c2bca0ec13a3f720e0dbdbe769004bd (diff)
downloadlatinime-36e2abdd3be1a2492f0816ec0fb4da96abf3d395.tar.gz
latinime-36e2abdd3be1a2492f0816ec0fb4da96abf3d395.tar.xz
latinime-36e2abdd3be1a2492f0816ec0fb4da96abf3d395.zip
am 46341838: Merge "Fix a bug that a word with only one missing word is not promoted" into honeycomb-mr1
* commit '463418385c2bca0ec13a3f720e0dbdbe769004bd': Fix a bug that a word with only one missing word is not promoted
-rw-r--r--native/src/unigram_dictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/unigram_dictionary.cpp b/native/src/unigram_dictionary.cpp
index c2cd76084..30fbaeae1 100644
--- a/native/src/unigram_dictionary.cpp
+++ b/native/src/unigram_dictionary.cpp
@@ -521,7 +521,7 @@ inline int UnigramDictionary::calculateFinalFreq(const int inputIndex, const int
finalFreq = capped255MultForFullMatchAccentsOrCapitalizationDifference(finalFreq);
}
}
- if (sameLength && skipPos < 0) finalFreq *= FULL_WORD_MULTIPLIER;
+ if (sameLength) finalFreq *= FULL_WORD_MULTIPLIER;
return finalFreq;
}