Commit eab8d6cf authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle

Fix crash on disable effect

parent 77839392
......@@ -242,11 +242,9 @@ void AssetParameterView::refresh(const QModelIndex &topLeft, const QModelIndex &
m_widgets[0]->slotRefresh();
return;
}
size_t max;
if (!bottomRight.isValid()) {
max = m_widgets.size() - 1;
} else {
max = (size_t)bottomRight.row();
size_t max = m_widgets.size() - 1;
if (bottomRight.isValid()) {
max = qMin(max, (size_t)bottomRight.row());
}
Q_ASSERT(max < m_widgets.size());
for (size_t i = (size_t)topLeft.row(); i <= max; ++i) {
......
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