From 60436458bbde50b03e10f13d61625b0aef8fbf3d Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Tue, 16 Nov 2010 14:54:06 +1000 Subject: Record images on more than just the first frame. 8fc0d1c36cae1b0 introduced this bug when recording new visual tests. Task-number: QTBUG-14792 --- tools/qml/qdeclarativetester.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12