Commit ef2f8ea8 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Do not assert if the exr layername and the layername aren't the same

This is not a fatal error, and we should be able to load files we
saved in a broken way.
parent 6b0ebe2d
......@@ -290,7 +290,10 @@ void KisSaveXmlVisitor::loadLayerAttributes(const QDomElement &el, KisLayer *lay
{
if (el.hasAttribute(NAME)) {
QString layerName = el.attribute(NAME);
KIS_ASSERT_RECOVER_RETURN(layerName == layer->name());
if (layerName != layer->name()) {
// Make the EXR layername leading in case of conflicts
layer->setName(layerName);
}
}
if (el.hasAttribute(CHANNEL_FLAGS)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment