summaryrefslogtreecommitdiffstats
path: root/src/color-profile.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-06-14 21:45:21 +0000
committerjabiertxof <info@marker.es>2016-06-14 21:45:21 +0000
commite17c2195890b267d2361b7feb80d89a71e69b1a3 (patch)
tree2588cc4d68d1e0156509563f02b6e163590f5e40 /src/color-profile.cpp
parentAdd snap to origin in double direction knots (diff)
parent[Bug #1300865] lcms2: crash in Fill and Stroke if linked color profile is mis... (diff)
downloadinkscape-e17c2195890b267d2361b7feb80d89a71e69b1a3.tar.gz
inkscape-e17c2195890b267d2361b7feb80d89a71e69b1a3.zip
update to trunk
(bzr r13645.1.158)
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);