diff options
| author | Felix Domke <tmbinc@2mac.waldobjekt.org> | 2009-06-30 01:30:40 +0200 |
|---|---|---|
| committer | Felix Domke <tmbinc@2mac.waldobjekt.org> | 2009-06-30 01:30:40 +0200 |
| commit | 0c2e529601f9931dc808388dfb8ec0a5fb96f06f (patch) | |
| tree | ea56e7a0d411a2b46c6ad24fe0c5afb21ed4bbc5 /lib/gui | |
| parent | e6ca11b5b7c734505f84206b196701828136f81a (diff) | |
| download | enigma2-0c2e529601f9931dc808388dfb8ec0a5fb96f06f.tar.gz enigma2-0c2e529601f9931dc808388dfb8ec0a5fb96f06f.zip | |
initialize m_cursor, fix cursorValid
Diffstat (limited to 'lib/gui')
| -rw-r--r-- | lib/gui/elistboxcontent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gui/elistboxcontent.cpp b/lib/gui/elistboxcontent.cpp index 3c9457e1..e05da215 100644 --- a/lib/gui/elistboxcontent.cpp +++ b/lib/gui/elistboxcontent.cpp @@ -49,7 +49,7 @@ int iListboxContent::currentCursorSelectable() DEFINE_REF(eListboxPythonStringContent); -eListboxPythonStringContent::eListboxPythonStringContent(): m_itemheight(25) +eListboxPythonStringContent::eListboxPythonStringContent(): m_itemheight(25), m_cursor(0) { } @@ -81,7 +81,7 @@ int eListboxPythonStringContent::cursorMove(int count) int eListboxPythonStringContent::cursorValid() { - return m_cursor < size(); + return ((unsigned int)m_cursor) < size(); } int eListboxPythonStringContent::cursorSet(int n) |
