From 12ae8ba9491b8428711cbbde50f8cc5719007cfa Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 23 Feb 2020 18:10:16 -0800 Subject: [PATCH] Qt: Fix build on Qt < 5.10 --- src/platform/qt/CoreController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/qt/CoreController.cpp b/src/platform/qt/CoreController.cpp index cb7dd12f4..5ecca6870 100644 --- a/src/platform/qt/CoreController.cpp +++ b/src/platform/qt/CoreController.cpp @@ -695,7 +695,7 @@ void CoreController::scanCard(const QString& path) { #else size = image.byteCount(); #endif - m_eReaderData.setRawData(reinterpret_cast(bits), image.sizeInBytes()); + m_eReaderData.setRawData(reinterpret_cast(bits), size); } mCoreThreadRunFunction(&m_threadContext, [](mCoreThread* thread) {