diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-11-18 13:00:33 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-11-18 13:00:33 +0100 |
commit | 3c65130e38154d9350df8d8827401f4d7fd6b28e (patch) | |
tree | 198e89b0768c9231826819b7be1e99f2ac281d59 /menu.c | |
parent | cca2cd35ad7ef20ae7d124e06d05e896c4d8f9b6 (diff) | |
download | vdr-3c65130e38154d9350df8d8827401f4d7fd6b28e.tar.gz vdr-3c65130e38154d9350df8d8827401f4d7fd6b28e.tar.bz2 |
Editing marks can now be moved freely
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 2.63 2012/11/13 11:23:25 kls Exp $ + * $Id: menu.c 2.64 2012/11/18 13:00:33 kls Exp $ */ #include "menu.h" @@ -4771,12 +4771,12 @@ void cReplayControl::MarkMove(bool Forward) int p = SkipFrames(Forward ? 1 : -1); cMark *m2; if (Forward) { - if ((m2 = marks.Next(m)) != NULL && m2->Position() <= p) - return; + while ((m2 = marks.Next(m)) != NULL && m2->Position() == m->Position()) + m = m2; } else { - if ((m2 = marks.Prev(m)) != NULL && m2->Position() >= p) - return; + while ((m2 = marks.Prev(m)) != NULL && m2->Position() == m->Position()) + m = m2; } m->SetPosition(p); Goto(m->Position(), true); |