Commit 285c30e1 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Force the clip to have a minimal size of 1.

Prevent an assert to trigger, and some hypothetical strange behaviour (and well, a 0 lengthed clip is useless...)
parent 660bdd36
...@@ -100,7 +100,7 @@ void AbstractGraphicsMediaItem::resize( qint64 size, From from ) ...@@ -100,7 +100,7 @@ void AbstractGraphicsMediaItem::resize( qint64 size, From from )
{ {
Q_ASSERT( clip() ); Q_ASSERT( clip() );
if ( size > clip()->getParent()->getNbFrames() || size < 0 ) if ( size > clip()->getParent()->getNbFrames() || size < 1 )
return; return;
qint64 realBegin = startPos() - clip()->getBegin(); qint64 realBegin = startPos() - clip()->getBegin();
......
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