diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2018-03-24 11:58:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2018-03-24 11:58:00 +0100 |
commit | e1a71ce7cc2bd828df5409faa3ad59ff6cf830bf (patch) | |
tree | c7ea04f3cd2b9e5e3e9bfa09a9e6534267ea15c2 /osdbase.c | |
parent | 53aea17949a184d264bfd98c8e669b94997bfc79 (diff) | |
download | vdr-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(); |