koffice/krita/kritacolor
    Cyrille Berger 
    cyb at lepi.org
       
    Mon Jan 23 21:59:26 CET 2006
    
    
  
SVN commit 501773 by berger:
* use a non-private lcms function to check if a profile support output
CCMAIL: kimageshop at kde.org
 M  +8 -2      kis_profile.cc  
--- trunk/koffice/krita/kritacolor/kis_profile.cc #501772:501773
@@ -107,8 +107,14 @@
         m_valid = true;
         
         // Check if the profile can convert (something -> this)
-        LPMATSHAPER OutMatShaper = cmsBuildOutputMatrixShaper(m_profile);
-        if( OutMatShaper )
+//         LPMATSHAPER OutMatShaper = cmsBuildOutputMatrixShaper(m_profile);
+//         if( OutMatShaper )
+//         {
+//             m_suitableForOutput = true;
+//         }
+        cmsCIEXYZTRIPLE Primaries;
+
+        if (cmsTakeColorants(&Primaries, m_profile))
         {
             m_suitableForOutput = true;
         }
    
    
More information about the kimageshop
mailing list