[vlmc-devel] commit: timeline: fix a crash when moving two linked clip (Ludovic Fauvet )

git at videolan.org git at videolan.org
Sat Mar 13 16:37:45 CET 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Sat Mar 13 16:37:23 2010 +0100| [6095df5af112cee3e4ce7e205944bdeb04b6e1ce] | committer: Ludovic Fauvet 

timeline: fix a crash when moving two linked clip

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

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

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 62517cb..9966eaa 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -422,12 +422,12 @@ TracksView::moveMediaItem( AbstractGraphicsMediaItem *item, quint32 track, qint6
         // Add missing tracks for the target
         if ( item->groupItem()->mediaType() == MainWorkflow::AudioTrack )
         {
-            while ( item->trackNumber() >= m_numAudioTrack )
+            while ( p.track() >= m_numAudioTrack )
                 addAudioTrack();
         }
         else if ( item->groupItem()->mediaType() == MainWorkflow::VideoTrack )
         {
-            while ( item->trackNumber() >= m_numVideoTrack )
+            while ( p.track() >= m_numVideoTrack )
                 addVideoTrack();
         }
 



More information about the Vlmc-devel mailing list