[gnome-color-manager] Broken ICC profiles sometimes have '_' rather than space in the title, correct this



commit e472d783082e89e0c1f4d2ac51dfd695f68d6063
Author: Richard Hughes <richard hughsie com>
Date:   Thu Dec 3 16:34:05 2009 +0000

    Broken ICC profiles sometimes have '_' rather than space in the title, correct this

 src/gcm-profile.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-profile.c b/src/gcm-profile.c
index d750b99..f7b1c9f 100644
--- a/src/gcm-profile.c
+++ b/src/gcm-profile.c
@@ -533,6 +533,9 @@ gcm_profile_ensure_printable (gchar *data)
 			data[idx++] = data[i];
 	}
 	data[idx] = '\0';
+
+	/* broken profiles have _ instead of spaces */
+	g_strdelimit (data, "_", ' ');
 }
 
 /**



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