Fix ShortcutListPolicy::getStartPos().

Bug: 6669677
Change-Id: I1fa9967fc6aa0956986954c8ea1f990a47c15764
This commit is contained in:
Keisuke Kuroyanagi 2013-08-14 17:23:57 +09:00
parent e18fdf804a
commit dfecc86f25

View File

@ -33,6 +33,9 @@ class ShortcutListPolicy : public DictionaryShortcutsStructurePolicy {
~ShortcutListPolicy() {} ~ShortcutListPolicy() {}
int getStartPos(const int pos) const { int getStartPos(const int pos) const {
if (pos == NOT_A_DICT_POS) {
return NOT_A_DICT_POS;
}
int listPos = pos; int listPos = pos;
ShortcutListReadingUtils::getShortcutListSizeAndForwardPointer(mShortcutsBuf, &listPos); ShortcutListReadingUtils::getShortcutListSizeAndForwardPointer(mShortcutsBuf, &listPos);
return listPos; return listPos;