Commit 71cb40b0 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix loading of selection masks

1) The active field should be saved correctly
2) The outline cache should be invalidated when loading

Fixes T568
parent a94069bd
......@@ -460,7 +460,7 @@ bool KisKraLoadVisitor::loadSelection(const QString& location, KisSelectionSP ds
if (!result) {
m_errorMessages << i18n("Could not load raster selection %1.", location);
}
pixelSelection->invalidateOutlineCache();
}
// Shape selection
......@@ -476,7 +476,6 @@ bool KisKraLoadVisitor::loadSelection(const QString& location, KisSelectionSP ds
if (!result) {
m_errorMessages << i18n("Could not load vector selection %1.", location);
}
}
return result;
}
......
......@@ -361,7 +361,7 @@ void KisSaveXmlVisitor::saveMask(QDomElement & el, const QString & maskType, con
el.setAttribute(UUID, mask->uuid().toString());
if (maskType == SELECTION_MASK) {
el.setAttribute(ACTIVE, mask->nodeProperties().boolProperty("visible"));
el.setAttribute(ACTIVE, mask->nodeProperties().boolProperty("active"));
}
m_nodeFileNames[mask] = MASK + QString::number(m_count);
......
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