diff options
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(); |