Skip to content
Permalink
Browse files

Don't assume ORA layers are PNGs

Let QImage autodetect the format.
Issue #184
  • Loading branch information...
callaa committed Apr 8, 2015
1 parent 6862434 commit c1f6238b55f2dd5c77774e16781ece76a7223c46
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client/ora/orareader.cpp
@@ -183,7 +183,7 @@ bool Reader::loadLayers(KArchive &zip, const QDomElement& stack, QPoint offset)
QImage content;
{
QByteArray image = utils::getArchiveFile(zip, src);
if(image.isNull() || !content.loadFromData(image, "png")) {
if(image.isNull() || !content.loadFromData(image)) {
_error = tr("Couldn't load layer %1").arg(src);
return false;
}

0 comments on commit c1f6238

Please sign in to comment.
You can’t perform that action at this time.