diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-03-31 17:40:05 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-01 17:05:07 +0200 |
commit | 7d44c8f91f244d2d7c9793c9ea985567c21f2559 (patch) | |
tree | 10b5c1e9aa13056429c8f7e76e48e1ec62dbbe28 /view.c | |
parent | e3995189003fd7c180ef53db2a785b61ef16fbd9 (diff) | |
download | vdr-plugin-tvguide-7d44c8f91f244d2d7c9793c9ea985567c21f2559.tar.gz vdr-plugin-tvguide-7d44c8f91f244d2d7c9793c9ea985567c21f2559.tar.bz2 |
Correct Warnung: Variable »ti« gesetzt
Diffstat (limited to 'view.c')
-rw-r--r-- | view.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -121,13 +121,9 @@ void cView::DrawHeader(void) { pixmapHeader->DrawText(cPoint(xText, ySubtitle), CutText(subTitle, textWidthMax, fontHeader).c_str(), theme.Color(clrFont), theme.Color(clrStatusHeader), fontHeader);
//REC Icon
eTimerMatch timerMatch=tmNone;
-#if VDRVERSNUM >= 20301
- const cTimer *ti;
-#else
- cTimer *ti;
-#endif
if (!event)
return;
+ const cTimer *ti;
if (tvguideConfig.useRemoteTimers && pRemoteTimers) {
RemoteTimers_GetMatch_v1_0 rtMatch;
rtMatch.event = event;
@@ -142,7 +138,7 @@ void cView::DrawHeader(void) { ti = Timers.GetMatch(event, &timerMatch);
#endif
}
- if (timerMatch == tmFull) {
+ if (ti && timerMatch == tmFull) {
cString recIconText(" REC ");
int widthIcon = fontManager.FontDetailHeader->Width(*recIconText);
int height = fontManager.FontDetailHeader->Height()+10;
|