Fix Playlist::move_later.
authorCarl Hetherington <cth@carlh.net>
Thu, 23 Oct 2014 20:44:07 +0000 (21:44 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 23 Oct 2014 20:44:07 +0000 (21:44 +0100)
ChangeLog
src/lib/playlist.cc

index ed089ba54ee398449a92d5e0842b21ade3775036..ea49d8a5654a7cb713d293226bc8bcd72ae3ec05 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-23  Carl Hetherington  <cth@carlh.net>
+
+       * Fix mix-placement of content when using the "Down"
+       button to move it.
+
 2014-10-22  Carl Hetherington  <cth@carlh.net>
 
        * Version 1.76.3 released.
index 64fdadad1a15fd7a3b74668857c59159f119c00f..264d9ab4a1bf6c69e86976629a85e6af752793cb 100644 (file)
@@ -395,7 +395,7 @@ Playlist::move_later (shared_ptr<Content> c)
        }
 
        (*next)->set_position (c->position ());
-       c->set_position (c->position() + c->length_after_trim ());
+       c->set_position (c->position() + (*next)->length_after_trim ());
        sort (_content.begin(), _content.end(), ContentSorter ());
 }