diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-06-14 21:45:21 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-06-14 21:45:21 +0000 |
| commit | e17c2195890b267d2361b7feb80d89a71e69b1a3 (patch) | |
| tree | 2588cc4d68d1e0156509563f02b6e163590f5e40 /src/color-profile.cpp | |
| parent | Add snap to origin in double direction knots (diff) | |
| parent | [Bug #1300865] lcms2: crash in Fill and Stroke if linked color profile is mis... (diff) | |
| download | inkscape-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.cpp | 6 |
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); |
