diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-01-11 11:23:38 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-01-11 11:23:38 +0100 |
commit | 48de95f5d2ed662d724a765ec11aa0eb2ef7dfb9 (patch) | |
tree | 44e5c48c520fd1be22e2ff7b42ca340a28bcbc20 /tools.c | |
parent | 73ccde16e82fa9da0ee7c78e3fb1045b09f69c78 (diff) | |
download | vdr-48de95f5d2ed662d724a765ec11aa0eb2ef7dfb9.tar.gz vdr-48de95f5d2ed662d724a765ec11aa0eb2ef7dfb9.tar.bz2 |
Fixed cListBase::Move() in case From and To are equal
Diffstat (limited to 'tools.c')
-rw-r--r-- | tools.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.c 2.19 2011/12/04 14:52:38 kls Exp $ + * $Id: tools.c 2.20 2012/01/11 11:21:43 kls Exp $ */ #include "tools.h" @@ -1913,7 +1913,7 @@ void cListBase::Move(int From, int To) void cListBase::Move(cListObject *From, cListObject *To) { - if (From && To) { + if (From && To && From != To) { if (From->Index() < To->Index()) To = To->Next(); if (From == objects) |