diff options
Diffstat (limited to 'lib/service/listboxservice.cpp')
| -rw-r--r-- | lib/service/listboxservice.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/service/listboxservice.cpp b/lib/service/listboxservice.cpp index e336dc17..e1f1beb0 100644 --- a/lib/service/listboxservice.cpp +++ b/lib/service/listboxservice.cpp @@ -55,8 +55,18 @@ int eListboxServiceContent::getNextBeginningWithChar(char c) m_service_center->info(*i, service_info); service_info->getName(*i, text); // printf("%c\n", text.c_str()[0]); - if (text.c_str()[0] == c) - return index; + int idx=0; + int len=text.length(); + while ( idx <= len ) + { + char cc = text[idx++]; + if ( cc >= 33 && cc < 127) + { + if (cc == c) + return index; + break; + } + } } return 0; } @@ -288,7 +298,6 @@ int eListboxServiceContent::cursorSet(int n) { cursorHome(); cursorMove(n); - return 0; } |
