Commit 789e92b3 authored by Agata Cacko's avatar Agata Cacko Committed by Dmitry Kazakov

Use unused variable in kis_kra_load_visitor

From the code it looks like the result will be always true anyway,
since both loadX function always return false,
but to be future-proof it's good to check this value.

CID 248461
CID 248980
parent 1bf499df
...@@ -262,6 +262,13 @@ bool KisKraLoadVisitor::visit(KisAdjustmentLayer* layer) ...@@ -262,6 +262,13 @@ bool KisKraLoadVisitor::visit(KisAdjustmentLayer* layer)
// We use the default, empty selection // We use the default, empty selection
} }
if (!result) {
m_warningMessages.append(i18nc("Warning during loading a kra file with a filter layer",
"Selection on layer %s couldn't be loaded. It will be replaced by an empty selection.", layer->name()));
// otherwise ignore and just use what is there already
// (most probably an empty selection)
}
if (!loadMetaData(layer)) { if (!loadMetaData(layer)) {
return false; return false;
} }
......
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