Commit 3cfaf1a5 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix regression in subtitle resize

Related to #917
parent def20962
...@@ -2882,7 +2882,7 @@ int TimelineModel::requestItemResize(int itemId, int size, bool right, bool logU ...@@ -2882,7 +2882,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