mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
Remove image allocation limit
This commit fixes this error: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 128 megabytes
This commit is contained in:
parent
6f358e4ea3
commit
fc1f48aaa5
@ -2,6 +2,7 @@
|
||||
#include <QDir>
|
||||
#include <QTranslator>
|
||||
#include <QCommandLineParser>
|
||||
#include <QImageReader>
|
||||
|
||||
#include "main_window_viewer.h"
|
||||
#include "configuration.h"
|
||||
@ -97,6 +98,8 @@ int main(int argc, char *argv[])
|
||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
|
||||
QImageReader::setAllocationLimit(0);
|
||||
|
||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
|
||||
#endif
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <QLibrary>
|
||||
#endif
|
||||
#include <QCommandLineParser>
|
||||
#include <QImageReader>
|
||||
|
||||
#include "yacreader_global.h"
|
||||
#include "yacreader_http_server.h"
|
||||
@ -130,6 +131,8 @@ int main(int argc, char **argv)
|
||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
|
||||
QImageReader::setAllocationLimit(0);
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
||||
#ifdef FORCE_ANGLE
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include <QSysInfo>
|
||||
#include <QDir>
|
||||
#include <QCommandLineParser>
|
||||
#include <QImageReader>
|
||||
|
||||
#include "comic_db.h"
|
||||
#include "db_helper.h"
|
||||
@ -81,6 +82,8 @@ int main(int argc, char **argv)
|
||||
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
QImageReader::setAllocationLimit(0);
|
||||
|
||||
app.setApplicationName("YACReaderLibrary");
|
||||
app.setOrganizationName("YACReader");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user