From 85ed63f825da57103c68f73af5adeebf67db0da9 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Mon, 26 Jun 2017 16:00:39 +0200 Subject: Fix QWebpHandler::canRead() to take animation frame count into account Task-number: QTBUG-61641 Change-Id: I24a139cc75141a588f2ed2558da85cd2f8391af9 Reviewed-by: Eirik Aavitsland --- tests/auto/webp/tst_qwebp.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/auto/webp/tst_qwebp.cpp b/tests/auto/webp/tst_qwebp.cpp index d1d30db..ad4a376 100644 --- a/tests/auto/webp/tst_qwebp.cpp +++ b/tests/auto/webp/tst_qwebp.cpp @@ -127,6 +127,7 @@ void tst_qwebp::readAnimation() } QVERIFY(reader.read().isNull()); + QCOMPARE(reader.canRead(), !reader.supportsAnimation()); } void tst_qwebp::writeImage_data() -- cgit v1.2.1