fixed crash in epgsearch fav view

This commit is contained in:
louis 2016-02-09 15:38:51 +01:00
parent b7d25009c0
commit c0297c01dc
2 changed files with 3 additions and 1 deletions

View File

@ -399,6 +399,8 @@ void cViewMenu::SetMessage(eMessageType type, const char *text) {
} }
void cViewMenu::SetChannelHeader(const cEvent *event) { void cViewMenu::SetChannelHeader(const cEvent *event) {
if (!event)
return;
if (menuChange && menuCat == mcSchedule) { if (menuChange && menuCat == mcSchedule) {
const cChannel *channel = Channels.GetByChannelID(event->ChannelID()); const cChannel *channel = Channels.GetByChannelID(event->ChannelID());
if (channel) if (channel)

View File

@ -105,7 +105,7 @@
<drawtextbox condition="{hasposter}" x="10" y="{posy(poster)}" width="99%" height="{areaheight} - {posy(poster)}" float="topleft" floatwidth="{width(poster)} + 10" floatheight="{height(poster)} + 20" font="{light}" fontsize="{areaheight}/20" color="{clrWhite}" text="{description}" /> <drawtextbox condition="{hasposter}" x="10" y="{posy(poster)}" width="99%" height="{areaheight} - {posy(poster)}" float="topleft" floatwidth="{width(poster)} + 10" floatheight="{height(poster)} + 20" font="{light}" fontsize="{areaheight}/20" color="{clrWhite}" text="{description}" />
<drawtextbox condition="not{hasposter}" x="10" y="{posy(poster)}" width="{areawidth} - 20" height="{areaheight} - {posy(poster)}" font="{light}" fontsize="{areaheight}/20" color="{clrWhite}" text="{description}" /> <drawtextbox condition="not{hasposter}" x="10" y="{posy(poster)}" width="{areawidth} - 20" height="{areaheight} - {posy(poster)}" font="{light}" fontsize="{areaheight}/20" color="{clrWhite}" text="{description}" />
</area> </area>
<areacontainer condition="{whatsonnow}||{whatsonnext}"> <areacontainer condition="{whatsonnow}||{whatsonnext}||{whatsonfavorites}">
<area x="63%" y="0" width="36%" height="85%" layer="2"> <area x="63%" y="0" width="36%" height="85%" layer="2">
<!-- title --> <!-- title -->
<drawtext align="center" y="0" font="{semibold}" width="{areawidth}-20" fontsize="10%" color="{clrWhite}" text="{title}" /> <drawtext align="center" y="0" font="{semibold}" width="{areawidth}-20" fontsize="10%" color="{clrWhite}" text="{title}" />