fix linked tuners (i hope)
[enigma2.git] / lib / gui / elistbox.cpp
index 0d92e10790ef9a9ce3d0e0b0db82d0d71e2f9cb2..dc735f85a391acdb8814daddf9e96fc092bafdbc 100644 (file)
@@ -144,7 +144,7 @@ int eListbox::event(int event, void *data, void *data2)
                
                for (int y = 0, i = 0; i < m_items_per_page; y += m_itemheight, ++i)
                {
                
                for (int y = 0, i = 0; i < m_items_per_page; y += m_itemheight, ++i)
                {
-                       m_content->paint(painter, *style, ePoint(0, y), m_selected == m_content->cursorGet());
+                       m_content->paint(painter, *style, ePoint(0, y), m_selected == m_content->cursorGet() && m_content->size());
                        m_content->cursorMove(+1);
                }
                
                        m_content->cursorMove(+1);
                }