Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

FIx crash on colorwheel

parent 02cc0b01
......@@ -166,8 +166,10 @@ void AssetParameterView::refresh(const QModelIndex &topLeft, const QModelIndex &
if (m_mainKeyframeWidget) {
m_mainKeyframeWidget->slotRefresh();
} else {
Q_ASSERT(bottomRight.row() < (int)m_widgets.size());
for (int i = topLeft.row(); i <= bottomRight.row(); ++i) {
//Q_ASSERT(bottomRight.row() < (int)m_widgets.size());
// Some special widgets, like colorwheel handle multiple params so we can have cases where param index row is greater than the number of widgets. Should be better managed
int min = qMin((int)m_widgets.size() - 1, bottomRight.row());
for (int i = topLeft.row(); i <= min; ++i) {
m_widgets[(uint)i]->slotRefresh();
}
}
......
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