diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/queue/PlaylistEdit.cxx | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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); |