am a84f7848: Merge "Fix: The top left key is a proximity of nonexistent keys."
* commit 'a84f7848d8da240137ca57a8e2100e6b09bfc7aa': Fix: The top left key is a proximity of nonexistent keys.main
commit
3b14961f20
|
@ -164,6 +164,9 @@ class ProximityInfoUtils {
|
||||||
const int gridWidth, const int mostCommonKeyWidth, const int keyCount,
|
const int gridWidth, const int mostCommonKeyWidth, const int keyCount,
|
||||||
const int x, const int y, const int primaryKey, const char *const localeStr,
|
const int x, const int y, const int primaryKey, const char *const localeStr,
|
||||||
const hash_map_compat<int, int> *const codeToKeyMap, int *proximities) {
|
const hash_map_compat<int, int> *const codeToKeyMap, int *proximities) {
|
||||||
|
if (x == NOT_A_COORDINATE || y == NOT_A_COORDINATE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const int mostCommonKeyWidthSquare = mostCommonKeyWidth * mostCommonKeyWidth;
|
const int mostCommonKeyWidthSquare = mostCommonKeyWidth * mostCommonKeyWidth;
|
||||||
int insertPos = 0;
|
int insertPos = 0;
|
||||||
proximities[insertPos++] = primaryKey;
|
proximities[insertPos++] = primaryKey;
|
||||||
|
|
Loading…
Reference in New Issue