[gnome-color-manager/gnome-2-30] Do not explode when viewing the details of a CMYK profile



commit 52957b655a58e39c5f69a4e7e19c88b8b83a1786
Author: Richard Hughes <richard hughsie com>
Date:   Mon Apr 5 16:58:09 2010 +0100

    Do not explode when viewing the details of a CMYK profile

 src/gcm-prefs.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 306d724..4330195 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -1530,7 +1530,8 @@ gcm_prefs_profiles_treeview_clicked_cb (GtkTreeSelection *selection, gpointer us
 	clut = gcm_profile_generate_curve (profile, 256);
 
 	/* only show if there is useful information */
-	size = gcm_clut_get_size (clut);
+	if (clut != NULL)
+		size = gcm_clut_get_size (clut);
 	if (size > 0) {
 		g_object_set (trc_widget,
 			      "clut", clut,



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