[vlmc-devel] commit: TracksView: Handle width of track effects (which is -1) ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Thu Sep 9 01:18:10 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Sep 9 00:17:13 2010 +0200| [b416bbca0aaad2e084e205084fa4b43006d130c4] | committer: Hugo Beauzée-Luyssen
TracksView: Handle width of track effects (which is -1)
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=b416bbca0aaad2e084e205084fa4b43006d130c4
---
src/Gui/timeline/TracksView.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 4ba9334..e66f467 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -284,6 +284,8 @@ TracksView::addItem( TrackWorkflow *tw, Workflow::Helper *helper, qint64 start )
EffectHelper *effectHelper = qobject_cast<EffectHelper*>( helper );
Q_ASSERT( effectHelper != NULL );
item = new GraphicsEffectItem( effectHelper );
+ if ( helper->length() < 0 )
+ item->setWidth( maximumWidth() );
}
m_itemsLoaded.insert( helper->uuid() );
item->m_tracksView = this;
More information about the Vlmc-devel
mailing list