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

Commit dfecc86f authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix ShortcutListPolicy::getStartPos().

Bug: 6669677
Change-Id: I1fa9967fc6aa0956986954c8ea1f990a47c15764
parent e18fdf80
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -33,6 +33,9 @@ class ShortcutListPolicy : public DictionaryShortcutsStructurePolicy {
    ~ShortcutListPolicy() {}

    int getStartPos(const int pos) const {
        if (pos == NOT_A_DICT_POS) {
            return NOT_A_DICT_POS;
        }
        int listPos = pos;
        ShortcutListReadingUtils::getShortcutListSizeAndForwardPointer(mShortcutsBuf, &listPos);
        return listPos;