[vlmc-devel] commit: timeline: fix a bug where two clips could overlap (Ludovic Fauvet )

git at videolan.org git at videolan.org
Sat Mar 13 17:42:16 CET 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Sat Mar 13 17:40:07 2010 +0100| [1d3370293e57a045a2823fd7e2b0bd6dabbe118e] | committer: Ludovic Fauvet 

timeline: fix a bug where two clips could overlap

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=1d3370293e57a045a2823fd7e2b0bd6dabbe118e
---

 src/Gui/timeline/TracksView.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 9966eaa..f9fc9a9 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -476,7 +476,7 @@ TracksView::moveMediaItem( AbstractGraphicsMediaItem *item, quint32 track, qint6
         if ( p.isValid() )
         {
             item->setStartPos( p.time() );
-            item->setParentItem( getTrack( item->mediaType(), track ) );
+            item->setParentItem( getTrack( item->mediaType(), p.track() ) );
         }
     }
 }



More information about the Vlmc-devel mailing list