# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- HEAD
+++ Modified In Working Tree
@@ -19,7 +19,7 @@
 
 #include <glib.h>  /* lcms.h uses the "inline" keyword */
 
-#include <lcms.h>
+#include <lcms2.h>
 
 #include <gtk/gtk.h>
 
@@ -146,7 +146,7 @@
   display_class->configure       = cdisplay_proof_configure;
   display_class->changed         = cdisplay_proof_changed;
 
-  cmsErrorAction (LCMS_ERROR_IGNORE);
+//  cmsErrorAction (LCMS_ERROR_IGNORE);
 }
 
 static void
@@ -292,15 +292,40 @@
 {
   cmsHPROFILE  profile = NULL;
   gchar       *label   = NULL;
+  cmsUInt32Number     descSize =0;
+  gchar             *descData;
 
   if (filename)
     profile = cmsOpenProfileFromFile (filename, "r");
 
   if (profile)
     {
-      label = gimp_any_to_utf8 (cmsTakeProductDesc (profile), -1, NULL);
+      descSize = cmsGetProfileInfoASCII(profile, cmsInfoDescription, "en", "US", NULL, 0);
+      if (descSize > 0)
+        {
+          descData = (gchar*) g_malloc(descSize + sizeof(gchar));
+          descSize = cmsGetProfileInfoASCII(profile, cmsInfoDescription, "en", "US", descData, descSize);
+          if (descSize > 0)
+            {
+              label = gimp_any_to_utf8 (descData, -1, NULL);
+            }
+        }
+
+//      label = gimp_any_to_utf8 (cmsTakeProductDesc (profile), -1, NULL);
       if (! label)
-        label = gimp_any_to_utf8 (cmsTakeProductName (profile), -1, NULL);
+        {
+          descSize = cmsGetProfileInfoASCII(profile, cmsInfoModel, "en", "US", NULL, 0);
+          if (descSize > 0)
+            {
+              descData = (gchar*) g_malloc(descSize + sizeof(gchar));
+              descSize = cmsGetProfileInfoASCII(profile, cmsInfoModel, "en", "US", descData, descSize);
+              if (descSize > 0)
+                {
+                  label = gimp_any_to_utf8 (descData, -1, NULL);
+                }
+            }
+        }
+//        label = gimp_any_to_utf8 (cmsTakeProductName (profile), -1, NULL);
 
       cmsCloseProfile (profile);
     }
@@ -465,7 +490,7 @@
 
   if (proofProfile)
     {
-      DWORD flags = cmsFLAGS_SOFTPROOFING;
+      cmsUInt32Number flags = cmsFLAGS_SOFTPROOFING;
 
       if (proof->bpc)
         flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
