##// END OF EJS Templates
Fix axis animation crash...
Titta Heikkala -
r2784:37816a0f0581
parent child
Show More
@@ -71,6 +71,8 void AxisAnimation::setValues(QVector<qreal> &oldLayout, QVector<qreal> &newLayo
71 int index = qMin(oldLayout.count() * (m_axis->axis()->orientation() == Qt::Horizontal ? m_point.x() : (1 - m_point.y())), newLayout.count() - (qreal)1.0);
71 int index = qMin(oldLayout.count() * (m_axis->axis()->orientation() == Qt::Horizontal ? m_point.x() : (1 - m_point.y())), newLayout.count() - (qreal)1.0);
72 oldLayout.resize(newLayout.count());
72 oldLayout.resize(newLayout.count());
73
73
74 if (index < 0)
75 break;
74 for (int i = 0; i < oldLayout.count(); i++)
76 for (int i = 0; i < oldLayout.count(); i++)
75 oldLayout[i] = oldLayout[index];
77 oldLayout[i] = oldLayout[index];
76 }
78 }
General Comments 0
You need to be logged in to leave comments. Login now