[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: =?utf-8?q?=5Bgraphics/krita/krita/5=2E0=5D_libs/pigment=3A_Reject_opening_F16_KRA_when_the_colorspac
From: L. E. Segovia <null () kde ! org>
Date: 2021-11-30 0:01:47
Message-ID: 20211130000147.45D7E12421E2 () leptone ! kde ! org
[Download RAW message or body]
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@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";
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic