[gnome-color-manager] Do not explode when viewing the details of a CMYK profile
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Do not explode when viewing the details of a CMYK profile
- Date: Mon, 5 Apr 2010 15:58:38 +0000 (UTC)
commit 689f0152688ead2c85be54c21643d9b8a933c9f0
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]