From 7d44c8f91f244d2d7c9793c9ea985567c21f2559 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Sun, 31 Mar 2019 17:40:05 +0200 Subject: [PATCH] =?UTF-8?q?Correct=20Warnung:=20Variable=20=C2=BBti=C2=AB?= =?UTF-8?q?=20gesetzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/view.c b/view.c index 8391a2f..3afa7ab 100644 --- a/view.c +++ b/view.c @@ -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;