summaryrefslogtreecommitdiff
path: root/osdbase.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2018-03-24 11:58:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2018-03-24 11:58:00 +0100
commite1a71ce7cc2bd828df5409faa3ad59ff6cf830bf (patch)
treec7ea04f3cd2b9e5e3e9bfa09a9e6534267ea15c2 /osdbase.c
parent53aea17949a184d264bfd98c8e669b94997bfc79 (diff)
downloadvdr-e1a71ce7cc2bd828df5409faa3ad59ff6cf830bf.tar.gz
vdr-e1a71ce7cc2bd828df5409faa3ad59ff6cf830bf.tar.bz2
Fixed setting the initial offset of the cursor in a list menu
Diffstat (limited to 'osdbase.c')
-rw-r--r--osdbase.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/osdbase.c b/osdbase.c
index 1720022d..d555af98 100644
--- a/osdbase.c
+++ b/osdbase.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osdbase.c 4.4 2018/03/06 10:38:18 kls Exp $
+ * $Id: osdbase.c 4.5 2018/03/24 11:47:45 kls Exp $
*/
#include "osdbase.h"
@@ -330,7 +330,8 @@ void cOsdMenu::Clear(void)
{
if (marked >= 0)
SetStatus(NULL);
- lastOffset = (current > first) ? current - first : 0;
+ if (current >= 0)
+ lastOffset = (current > first) ? current - first : 0;
first = 0;
current = marked = -1;
cList<cOsdItem>::Clear();