Commit 660bdd36 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Fixed clip resizing problem.

It was possible to resize a clip past its limit by playing with beginning, then adjust the end.
parent 723844e0
......@@ -108,7 +108,7 @@ void AbstractGraphicsMediaItem::resize( qint64 size, From from )
if ( from == BEGINNING )
{
if ( clip()->getBegin() + size > realEnd )
if ( realBegin + clip()->getBegin() + size > realEnd )
return ;
tracksView()->getRenderer()->resizeClip( clip(), clip()->getBegin(), clip()->getBegin() + size, 0, //This parameter is unused in this case
trackNumber(), MainWorkflow::VideoTrack );
......
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