From: Andreas Monzner Date: Tue, 15 Nov 2005 21:29:53 +0000 (+0000) Subject: draw entrys with backgroundcolor when the listbox is empty X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=037dcdf29289cf4a67e3fd760a192ac305da3497 draw entrys with backgroundcolor when the listbox is empty --- diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index 0d92e10..dc735f8 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -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) { - 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); }