Commit 9601a30c authored by Halla Rempt's avatar Halla Rempt
Browse files

Return false from setColorSpace if the profile could not be retrieved

BUG:454812
parent 42d5b4ff
Pipeline #194807 passed with stage
in 76 minutes and 29 seconds
......@@ -342,6 +342,7 @@ bool Node::setColorSpace(const QString &colorModel, const QString &colorDepth, c
if (!d->node) return false;
if (!d->node->inherits("KisLayer")) return false;
const KoColorProfile *profile = KoColorSpaceRegistry::instance()->profileByName(colorProfile);
if (!profile) return false;
const KoColorSpace *dstCs = KoColorSpaceRegistry::instance()->colorSpace(colorModel,
colorDepth,
profile);
......
Supports Markdown
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