Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52612a0d authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix a bug with negative coordinates, step 3

This implements the actual change, now that indentation is okay

Change-Id: Idd897f988394125611516431711c1e575df871df
parent 3094d12c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ void ProximityInfo::calculateNearbyKeyCodes(
    int insertPos = 0;
    inputCodes[insertPos++] = primaryKey;
    const int startIndex = getStartIndexFromCoordinates(x, y);

    if (startIndex >= 0) {
        for (int i = 0; i < MAX_PROXIMITY_CHARS_SIZE; ++i) {
            const int32_t c = mProximityCharsArray[startIndex + i];
            if (c < KEYCODE_SPACE || c == primaryKey) {
@@ -208,7 +208,7 @@ void ProximityInfo::calculateNearbyKeyCodes(
                }
            }
        }

    }
    // Add a delimiter for the proximity characters
    for (int i = insertPos; i < MAX_PROXIMITY_CHARS_SIZE; ++i) {
        inputCodes[i] = NOT_A_CODE;