diff --git a/NEWS b/NEWS index 48a489178..92d8df17f 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ ver 0.21.16 (not yet released) +* queue + - fix relative destination offset when moving a range * storage - curl: request the "resourcetype" property to fix database update - curl: URL-encode more paths diff --git a/src/queue/PlaylistEdit.cxx b/src/queue/PlaylistEdit.cxx index a0e504f44..9a2b37eed 100644 --- a/src/queue/PlaylistEdit.cxx +++ b/src/queue/PlaylistEdit.cxx @@ -353,7 +353,7 @@ playlist::MoveRange(PlayerControl &pc, unsigned start, unsigned end, int to) return; to = (currentSong + abs(to)) % GetLength(); if (start < (unsigned)to) - to--; + to -= end - start; } queue.MoveRange(start, end, to);