Qt: Fix build on Qt < 5.10

This commit is contained in:
Vicki Pfau 2020-02-23 18:10:16 -08:00
parent 75fa9a80fa
commit 12ae8ba949
1 changed files with 1 additions and 1 deletions

View File

@ -695,7 +695,7 @@ void CoreController::scanCard(const QString& path) {
#else
size = image.byteCount();
#endif
m_eReaderData.setRawData(reinterpret_cast<const char*>(bits), image.sizeInBytes());
m_eReaderData.setRawData(reinterpret_cast<const char*>(bits), size);
}
mCoreThreadRunFunction(&m_threadContext, [](mCoreThread* thread) {