src/gui/timerlist.cpp dont check empty timerlist

This commit is contained in:
Jacek Jendrzej
2016-12-08 16:16:57 +01:00
parent 74c54d885a
commit f7cfe0256b

View File

@@ -1377,6 +1377,8 @@ void CTimerList::paintHead()
void CTimerList::paintFoot()
{
if(!timerlist.empty() )
{
CTimerd::responseGetTimer* timer=&timerlist[selected];
if (timer != NULL)
{
@@ -1386,7 +1388,7 @@ void CTimerList::paintFoot()
else
TimerListButtons[4].button = NEUTRINO_ICON_BUTTON_DUMMY_SMALL;
}
}
//shadow
frameBuffer->paintBoxRel(x + OFFSET_SHADOW, y + height - footerHeight, width, footerHeight + OFFSET_SHADOW, COL_SHADOW_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);