diff options
author | louis <louis.braun@gmx.de> | 2014-01-02 17:20:03 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-01-02 17:20:03 +0100 |
commit | 5bd0ad2603c5cfe1ac0ab9cadafa1ba6d3aee114 (patch) | |
tree | e4646818ca583c2929254080f2532ab65b809f75 /recmenuitem.c | |
parent | 45428b5162afea4bb318222c7f2a37e2c7dfb6ba (diff) | |
download | vdr-plugin-tvguide-5bd0ad2603c5cfe1ac0ab9cadafa1ba6d3aee114.tar.gz vdr-plugin-tvguide-5bd0ad2603c5cfe1ac0ab9cadafa1ba6d3aee114.tar.bz2 |
fixed uninitialised pixmap
Diffstat (limited to 'recmenuitem.c')
-rw-r--r-- | recmenuitem.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recmenuitem.c b/recmenuitem.c index db10a7c..4e3ba9d 100644 --- a/recmenuitem.c +++ b/recmenuitem.c @@ -2125,15 +2125,15 @@ void cRecMenuItemTimelineHeader::Draw(void) { int xText = (width - font->Width(*header)) / 2; int yText = (height/4 - font->Height())/2; pixmap->DrawText(cPoint(xText, yText), *header, colorText, clrTransparent, font); - - if (timer) { - DrawCurrentTimer(); - } + + DrawCurrentTimer(); } void cRecMenuItemTimelineHeader::DrawCurrentTimer(void) { - int infoHeight = pixmapTimerInfo->ViewPort().Height(); pixmapTimerInfo->Fill(clrTransparent); + if (!timer) + return; + int infoHeight = pixmapTimerInfo->ViewPort().Height(); const cEvent *event = timer->Event(); const cChannel *channel = timer->Channel(); int x = 0; |