diff options
author | Michal Klocek <michal.klocek@digia.com> | 2013-01-21 10:44:32 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@digia.com> | 2013-01-21 10:44:32 +0100 |
commit | d108889b4c996d187750689e0a8a76d3deee3e37 (patch) | |
tree | da8f7331b0b9d6c902b87ae4b4e7b5773bc5b8e6 /src/animations | |
parent | d3d25f8317f55b216bab09215a69daf3325f8d26 (diff) |
Revert "TODOs removed from code. Undo me after release"
This reverts commit 37aa57c82a3a115ff1a58cb04f9dc2f3c1c06d45.
Diffstat (limited to 'src/animations')
-rw-r--r-- | src/animations/axisanimation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/animations/axisanimation.cpp b/src/animations/axisanimation.cpp index 49842b81..dc224e18 100644 --- a/src/animations/axisanimation.cpp +++ b/src/animations/axisanimation.cpp @@ -57,6 +57,11 @@ void AxisAnimation::setValues(QVector<qreal> &oldLayout, QVector<qreal> &newLayo { if (state() != QAbstractAnimation::Stopped) stop(); +// TODO: cannot return even if layout is empty +// New layout is not set properly without it (crash) +// if (newLayout.count() == 0) +// return; + switch (m_type) { case ZoomOutAnimation: { QRectF rect = m_axis->gridGeometry(); @@ -125,6 +130,7 @@ void AxisAnimation::updateCurrentValue(const QVariant &value) { if (state() != QAbstractAnimation::Stopped) { //workaround QVector<qreal> vector = qvariant_cast<QVector<qreal> >(value); +// Q_ASSERT(vector.count() != 0); m_axis->setLayout(vector); m_axis->updateGeometry(); } |