summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/color-profile.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index 03a975a0c..39cebcb0c 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -483,6 +483,11 @@ static void findThings() {
}
}
+int errorHandlerCB(int ErrorCode, const char *ErrorText)
+{
+ g_message("lcms: Error %d; %s", ErrorCode, ErrorText);
+}
+
cmsHPROFILE Inkscape::colorprofile_get_system_profile_handle()
{
@@ -491,6 +496,8 @@ cmsHPROFILE Inkscape::colorprofile_get_system_profile_handle()
static bool init = false;
if ( !init ) {
+ cmsSetErrorHandler(errorHandlerCB);
+
findThings();
init = true;
}