Commit 20fb83e0 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen
Browse files

Here is the nasty patch evoqued in aedff2bc

parent f90c5278
......@@ -130,6 +130,14 @@ void TracksView::addMediaItem( Clip* clip, unsigned int track, qint64 start )
{
Q_ASSERT( clip );
//nasty temporary fix:
if ( track > m_numVideoTrack )
{
unsigned int nbTrackToAdd = track - m_numVideoTrack;
for ( unsigned int i = 0; i < nbTrackToAdd; ++i )
addVideoTrack();
}
// Is the clip already existing in the timeline ?
//TODO: please optimize me!
QList<QGraphicsItem*> sceneItems = m_scene->items();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment