Skip to content
Snippets Groups Projects
Commit dfecc86f authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix ShortcutListPolicy::getStartPos().

Bug: 6669677
Change-Id: I1fa9967fc6aa0956986954c8ea1f990a47c15764
parent e18fdf80
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment