Commit 986f8367 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix resizing clip in

parent 7972a76e
Pipeline #1536 passed with stage
in 25 minutes and 55 seconds
......@@ -1493,7 +1493,7 @@ int TimelineModel::requestItemResize(int itemId, int size, bool right, bool logU
size = getTrackById_const(trackId)->getBlankEnd(out + 1) - in;
}
} else if (!right && size > (out - in) && isClip(itemId)) {
int targetPos = in + out + 1 - size;
int targetPos = out - size;
int trackId = getItemTrackId(itemId);
if (!getTrackById_const(trackId)->isBlankAt(targetPos)) {
size = out - getTrackById_const(trackId)->getBlankStart(in - 1);
......
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