Commit 6b0ebe2d authored by Boudewijn Rempt's avatar Boudewijn Rempt

EXR: make sure when saving the layer names are consistent

On loading an exr, we check whether the exr layername and the
krita layername are the same with a safe assert, so we probably
should make sure of that when saving as well.
parent 87069a6d
......@@ -1328,8 +1328,10 @@ QString EXRConverter::Private::fetchExtraLayersInfo(QList<ExrPaintLayerSaveInfo>
quint32 unused;
KisSaveXmlVisitor visitor(doc, rootElement, unused, QString(), false);
QDomElement el = visitor.savePaintLayerAttributes(info.layer.data(), doc);
// cut the ending '.'
QString strippedName = info.name.left(info.name.size() - 1);
KIS_SAFE_ASSERT_RECOVER_NOOP(info.layer->name() == strippedName);
el.setAttribute(EXR_NAME, strippedName);
......
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