mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kimgio: read resource image files as blob
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
cc5a959285
commit
68f3abe724
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ bool MagickHandler::read(QImage *image)
|
|||
// QMovie will continuously call read() to get each frame
|
||||
if (m_magickimages.size() == 0) {
|
||||
const QFile *file = qobject_cast<QFile*>(device());
|
||||
if (file) {
|
||||
if (file && !file->fileName().startsWith(QLatin1Char(':'))) {
|
||||
// some ImageMagick coders fail to load from blob (e.g. icon), this workaround does
|
||||
// not work for resource files tho
|
||||
const std::string filename = file->fileName().toStdString();
|
||||
|
|
Loading…
Add table
Reference in a new issue