[graphics/krita/krita/5.0] libs/pigment: Reject opening F16 KRA when the colorspace isn't available
L. E. Segovia
null at kde.org
Tue Nov 30 00:01:47 GMT 2021
Git commit e09bc3f76b0805fe30177fe79dd3c2e4bbfebe70 by L. E. Segovia.
Committed on 30/11/2021 at 00:01.
Pushed by lsegovia into branch 'krita/5.0'.
Reject opening F16 KRA when the colorspace isn't available
CCMAIL: kimageshop at kde.org
(cherry picked from commit aab049f0b3b238d6aa4a6433f11afdb5925d3c0f)
M +4 -0 libs/pigment/KoColorSpaceRegistry.cpp
https://invent.kde.org/graphics/krita/commit/e09bc3f76b0805fe30177fe79dd3c2e4bbfebe70
diff --git a/libs/pigment/KoColorSpaceRegistry.cpp b/libs/pigment/KoColorSpaceRegistry.cpp
index c1594a5848..b905510d89 100644
--- a/libs/pigment/KoColorSpaceRegistry.cpp
+++ b/libs/pigment/KoColorSpaceRegistry.cpp
@@ -423,6 +423,10 @@ const KoColorSpace *KoColorSpaceRegistry::Private::lazyCreateColorSpaceImpl(cons
cs = getCachedColorSpaceImpl(csID, profile->name());
if (!cs) {
KoColorSpaceFactory *csf = colorSpaceFactoryRegistry.value(csID);
+ if (!csf) {
+ qWarning() << "Unable to create color space factory for" << csID;
+ return 0;
+ }
cs = csf->grabColorSpace(profile);
if (!cs) {
dbgPigmentCSRegistry << "Unable to create color space";
More information about the kimageshop
mailing list