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

TracksView: Handle width of track effects (which is -1)

parent 3b18af39
......@@ -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;
......
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