[vlmc-devel] commit: timeline: fix a small bug in the free space search algorithm ( Ludovic Fauvet )
git at videolan.org
git at videolan.org
Tue Mar 23 12:25:07 CET 2010
vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Tue Mar 23 12:17:49 2010 +0100| [cc9e6f0fffcf44635c2c323df89a1f34de4422ab] | committer: Ludovic Fauvet
timeline: fix a small bug in the free space search algorithm
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=cc9e6f0fffcf44635c2c323df89a1f34de4422ab
---
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 e0bd2a3..76263c2 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -508,7 +508,7 @@ TracksView::findPosition( AbstractGraphicsMediaItem *item, quint32 track, qint64
{
// Collision with an item of the same type
itemCollision = true;
- if ( currentItem->trackNumber() >= track )
+ if ( currentItem->trackNumber() > track )
{
if ( track < 1 )
{
@@ -518,7 +518,7 @@ TracksView::findPosition( AbstractGraphicsMediaItem *item, quint32 track, qint64
}
track -= 1;
}
- else if ( currentItem->trackNumber() < track )
+ else if ( currentItem->trackNumber() <= track )
{
if ( track >= m_numVideoTrack - 1 )
{
More information about the Vlmc-devel
mailing list