Commit 8226914b authored by Halla Rempt's avatar Halla Rempt
Browse files

Return false from setColorSpace if the profile could not be retrieved

(cherry picked from commit 9601a30c)
parent a7d4d33c
Pipeline #194808 passed with stage
in 74 minutes
......@@ -294,6 +294,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,
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