[vlmc-devel] commit: TrackWorkflow: Fix a non sense when saving the track to a project file. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Wed Apr 14 00:36:27 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Wed Apr 14 00:28:45 2010 +0200| [a2e6019edc9e5f9138204b7f0f230c337b621bad] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=a2e6019edc9e5f9138204b7f0f230c337b621bad
---
src/Workflow/TrackWorkflow.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Workflow/TrackWorkflow.cpp b/src/Workflow/TrackWorkflow.cpp
index a1085c2..24a5b8d 100644
--- a/src/Workflow/TrackWorkflow.cpp
+++ b/src/Workflow/TrackWorkflow.cpp
@@ -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() ) );
More information about the Vlmc-devel
mailing list