Fix ShortcutListPolicy::getStartPos().

Bug: 6669677
Change-Id: I1fa9967fc6aa0956986954c8ea1f990a47c15764
main
Keisuke Kuroyanagi 2013-08-14 17:23:57 +09:00
parent e18fdf804a
commit dfecc86f25
1 changed files with 3 additions and 0 deletions

View File

@ -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;