summaryrefslogtreecommitdiffstats
path: root/src/color-profile.cpp
diff options
context:
space:
mode:
authorAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-06-19 22:59:39 +0000
committerAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-06-19 22:59:39 +0000
commit73a7b549a1a59b121218d4f6d22d51c449a4ca60 (patch)
treea76ed3ce8956dbffde439f01f694edb40ad60719 /src/color-profile.cpp
parentMoved most functions from Selection to ObjectSet (diff)
parent[Bug #1454910] Compressed SVG with media error. (diff)
downloadinkscape-73a7b549a1a59b121218d4f6d22d51c449a4ca60.tar.gz
inkscape-73a7b549a1a59b121218d4f6d22d51c449a4ca60.zip
Added first range to ObjectSet
(bzr r14954.1.8)
Diffstat (limited to 'src/color-profile.cpp')
-rw-r--r--src/color-profile.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index 9e545df03..aea9ccab0 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -588,7 +588,11 @@ bool ColorProfile::GamutCheck(SPColor color)
static_cast<guchar>(SP_RGBA32_G_U(val)),
static_cast<guchar>(SP_RGBA32_B_U(val)),
255};
- cmsDoTransform(ColorProfile::getTransfGamutCheck(), &check_color, &outofgamut, 1);
+
+ cmsHTRANSFORM gamutCheck = ColorProfile::getTransfGamutCheck();
+ if (gamutCheck) {
+ cmsDoTransform(gamutCheck, &check_color, &outofgamut, 1);
+ }
#if HAVE_LIBLCMS1
cmsSetAlarmCodes(alarm_r, alarm_g, alarm_b);