Commit 4a4005ac authored by Clement CHAVANCE's avatar Clement CHAVANCE
Browse files

clip are not created if begin > end

parent 97218f81
......@@ -185,7 +185,8 @@ void PreviewWidget::createNewClipFromMarkers()
if ( beg == -1 && end == -1 )
return ;
qDebug() << "Creating new Clip beg:" << beg << "end" << end;
if ( end < beg )
return ;
beg = beg < 0 ? 0 : beg;
Clip* part = new Clip( selectedMedia, beg, end );
......
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