Commit a2e6019e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

TrackWorkflow: Fix a non sense when saving the track to a project file.

This fixes a crash when saving a project with a root clip in the timeline.
parent 7f1d5173
......@@ -402,7 +402,7 @@ void TrackWorkflow::save( QXmlStreamWriter& project ) const
for ( ; it != end ; ++it )
{
project.writeStartElement( "clip" );
project.writeAttribute( "uuid", it.value()->getClip()->getParent()->fullId() );
project.writeAttribute( "uuid", it.value()->getClip()->fullId() );
project.writeAttribute( "startFrame", QString::number( it.key() ) );
project.writeAttribute( "begin", QString::number( it.value()->getClip()->begin() ) );
project.writeAttribute( "end", QString::number( it.value()->getClip()->end() ) );
......
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