am dfecc86f
: Fix ShortcutListPolicy::getStartPos().
* commit 'dfecc86f255538840461c1a30e98cf6eba445c2e': Fix ShortcutListPolicy::getStartPos().
This commit is contained in:
commit
a05c94747b
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue