summaryrefslogtreecommitdiffstats
path: root/tools/qml
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2010-11-16 04:54:06 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2010-11-16 04:54:06 (GMT)
commit60436458bbde50b03e10f13d61625b0aef8fbf3d (patch)
tree10bb471d801d498c35fc63c91f417258414ef340 /tools/qml
parent7c40149cf63877ee3d29ec34826ed2a63b4908f2 (diff)
downloadQt-60436458bbde50b03e10f13d61625b0aef8fbf3d.zip
Qt-60436458bbde50b03e10f13d61625b0aef8fbf3d.tar.gz
Qt-60436458bbde50b03e10f13d61625b0aef8fbf3d.tar.bz2
Record images on more than just the first frame.
8fc0d1c36cae1b0 introduced this bug when recording new visual tests. Task-number: QTBUG-14792
Diffstat (limited to 'tools/qml')
-rw-r--r--tools/qml/qdeclarativetester.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qml/qdeclarativetester.cpp b/tools/qml/qdeclarativetester.cpp
index e2a90cc..a516fd7 100644
--- a/tools/qml/qdeclarativetester.cpp
+++ b/tools/qml/qdeclarativetester.cpp
@@ -285,7 +285,7 @@ void QDeclarativeTester::updateCurrentTime(int msec)
fe.msec = msec;
if (msec == 0 || !(options & QDeclarativeViewer::TestImages)) {
// Skip first frame, skip if not doing images
- } else if (0 == (m_savedFrameEvents.count()-1 % 60) || snapshot) {
+ } else if (0 == ((m_savedFrameEvents.count()-1) % 60) || snapshot) {
fe.image = img;
} else {
QCryptographicHash hash(QCryptographicHash::Md5);