set device of ICO format handler

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-08-03 09:20:56 +03:00
parent fc93a1bbd8
commit 6eaba1614a

View file

@ -60,7 +60,7 @@ QImageIOPlugin::Capabilities QICOPlugin::capabilities(QIODevice *device, const Q
QImageIOHandler *QICOPlugin::create(QIODevice *device, const QByteArray &format) const
{
QImageIOHandler *handler = new QtIcoHandler(device);
handler->setDevice(device);
handler->setFormat(format);
return handler;
}