summaryrefslogtreecommitdiffstats
path: root/src/sp-image.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-07-13 22:21:37 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2011-07-13 22:21:37 +0000
commit0d6be77f2af241e47d0df3f19619db85ca8127e7 (patch)
tree510d535eb41530772c79218ece39023d85d42c93 /src/sp-image.cpp
parentFix crashes during offscreen rendering, part 1 (diff)
parentFix crashes in print preview (diff)
downloadinkscape-0d6be77f2af241e47d0df3f19619db85ca8127e7.tar.gz
inkscape-0d6be77f2af241e47d0df3f19619db85ca8127e7.zip
Merge from trunk to pull in fix for LP #806105
(bzr r10347.1.13)
Diffstat (limited to 'src/sp-image.cpp')
-rw-r--r--src/sp-image.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sp-image.cpp b/src/sp-image.cpp
index 3f1c19295..791e88b39 100644
--- a/src/sp-image.cpp
+++ b/src/sp-image.cpp
@@ -45,8 +45,9 @@
#include "io/sys.h"
#if ENABLE_LCMS
-#include "color-profile-fns.h"
+#include "cms-system.h"
#include "color-profile.h"
+#include <lcms.h>
//#define DEBUG_LCMS
#ifdef DEBUG_LCMS
@@ -849,9 +850,9 @@ static void sp_image_update( SPObject *object, SPCtx *ctx, unsigned int flags )
DEBUG_MESSAGE( lcmsFive, "in <image>'s sp_image_update. About to call colorprofile_get_handle()" );
#endif // DEBUG_LCMS
guint profIntent = Inkscape::RENDERING_INTENT_UNKNOWN;
- cmsHPROFILE prof = Inkscape::colorprofile_get_handle( object->document,
- &profIntent,
- image->color_profile );
+ cmsHPROFILE prof = Inkscape::CMSSystem::getHandle( object->document,
+ &profIntent,
+ image->color_profile );
if ( prof ) {
icProfileClassSignature profileClass = cmsGetDeviceClass( prof );
if ( profileClass != icSigNamedColorClass ) {