@@ -71,6 +71,8 void AxisAnimation::setValues(QVector<qreal> &oldLayout, QVector<qreal> &newLayo | |||
|
71 | 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 | 72 | oldLayout.resize(newLayout.count()); |
|
73 | 73 | |
|
74 | if (index < 0) | |
|
75 | break; | |
|
74 | 76 | for (int i = 0; i < oldLayout.count(); i++) |
|
75 | 77 | oldLayout[i] = oldLayout[index]; |
|
76 | 78 | } |
General Comments 0
You need to be logged in to leave comments.
Login now