Commit 48de2321 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix regression in subtitle resize

Related to #917
parent f3ff6d26
...@@ -2890,7 +2890,7 @@ int TimelineModel::requestItemResize(int itemId, int size, bool right, bool logU ...@@ -2890,7 +2890,7 @@ int TimelineModel::requestItemResize(int itemId, int size, bool right, bool logU
int offset = getItemPlaytime(itemId); int offset = getItemPlaytime(itemId);
int tid = getItemTrackId(itemId); int tid = getItemTrackId(itemId);
int out = offset; int out = offset;
if (tid != -1 || isComposition(itemId)) { if (tid != -1 || !isClip(itemId)) {
in = qMax(0, getItemPosition(itemId)); in = qMax(0, getItemPosition(itemId));
out += in; out += in;
size = requestItemResizeInfo(itemId, in, out, size, right, snapDistance); size = requestItemResizeInfo(itemId, in, out, size, right, snapDistance);
......
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