[f-spot/FSPOT_0_6_0_STABLE] Use ProductDescription as cms display name



commit 54c302df0ffdf459df3222008386923c5af5c944
Author: Pascal de Bruijn <pmjdebruijn pcode nl>
Date:   Mon Jan 4 14:06:05 2010 +0100

    Use ProductDescription as cms display name
    
    fixes bgo #605916

 src/Core/ColorManagement.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/Core/ColorManagement.cs b/src/Core/ColorManagement.cs
index 2bbcfd1..a8f4526 100644
--- a/src/Core/ColorManagement.cs
+++ b/src/Core/ColorManagement.cs
@@ -25,12 +25,12 @@ namespace FSpot {
 				if (profiles == null) {
 					profiles = new Dictionary<string, Cms.Profile> ();
 					Cms.Profile p = Cms.Profile.CreateStandardRgb ();
-					if (!profiles.ContainsKey (p.ProductName))
-						profiles.Add (p.ProductName, p);
+					if (!profiles.ContainsKey (p.ProductDescription))
+						profiles.Add (p.ProductDescription, p);
 
 					p = Cms.Profile.CreateAlternateRgb ();
-					if (!profiles.ContainsKey (p.ProductName))
-						profiles.Add (p.ProductName, p);
+					if (!profiles.ContainsKey (p.ProductDescription))
+						profiles.Add (p.ProductDescription, p);
 
 					foreach (var path in search_dir)
 						if (!profiles.ContainsKey (path))
@@ -60,14 +60,14 @@ namespace FSpot {
 				string[] IccColorProfilList = System.IO.Directory.GetFiles (path, "*.icc");
 				foreach (string ColorProfilePath in IccColorProfilList) {
 					Cms.Profile profile = new Cms.Profile (ColorProfilePath);
-					if ((Cms.IccColorSpace)profile.ColorSpace == Cms.IccColorSpace.Rgb && profile.ProductName != null && !profs.ContainsKey (profile.ProductName))
-						profs.Add(profile.ProductName, profile);
+					if ((Cms.IccColorSpace)profile.ColorSpace == Cms.IccColorSpace.Rgb && profile.ProductDescription != null && !profs.ContainsKey (profile.ProductDescription))
+						profs.Add(profile.ProductDescription, profile);
 				}
 				string[] IcmColorProfilList = System.IO.Directory.GetFiles (path, "*.icm");
 				foreach (string ColorProfilePath in IcmColorProfilList) {
 					Cms.Profile profile = new Cms.Profile (ColorProfilePath);
-					if ((Cms.IccColorSpace)profile.ColorSpace == Cms.IccColorSpace.Rgb && !profs.ContainsKey (profile.ProductName))
-						profs.Add(profile.ProductName, profile);
+					if ((Cms.IccColorSpace)profile.ColorSpace == Cms.IccColorSpace.Rgb && !profs.ContainsKey (profile.ProductDescription))
+						profs.Add(profile.ProductDescription, profile);
 				}
 				string[] DirList = System.IO.Directory.GetDirectories (path);
 					foreach (string dir in DirList)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]