diff options
Diffstat (limited to 'src/keys')
-rw-r--r-- | src/keys/listkey.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keys/listkey.cpp b/src/keys/listkey.cpp index 08a1015..4b06298 100644 --- a/src/keys/listkey.cpp +++ b/src/keys/listkey.cpp @@ -283,7 +283,8 @@ const char *ListKey::getRangeText() const { */ const char *ListKey::getText() const { - SWKey *key = GetElement(); + int pos = arraypos; + SWKey *key = (pos >= arraycnt) ? 0:array[pos]; return (key) ? key->getText() : keytext; } |