Fix crash setting effect geometry to frame size.

Fixes #567
parent 0baa4133
Pipeline #15574 passed with stage
in 13 minutes and 55 seconds
......@@ -44,7 +44,7 @@ GeometryWidget::GeometryWidget(Monitor *monitor, QPair<int, int> range, const QR
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(0);
m_defaultSize = pCore->getCurrentFrameSize();
m_sourceSize = frameSize.isValid() ? frameSize : m_defaultSize;
m_sourceSize = (frameSize.isValid() && !frameSize.isNull()) ? frameSize : m_defaultSize;
/*QString paramName = i18n(paramTag.toUtf8().data());
QString comment = m_model->data(ix, AssetParameterModel::CommentRole).toString();
if (!comment.isEmpty()) {
......
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