From 43bdd4144aafb14820ddfdec93bf58dd940abeed Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Mon, 27 Jun 2005 09:44:32 +0000 Subject: [PATCH] gracefully handle a NULL config until we have fixed creation of color 2005-06-27 Sven Neumann * modules/cdisplay_lcms.c (cdisplay_lcms_configure): gracefully handle a NULL config until we have fixed creation of color display modules so that they always have a reference to GimpColorConfig. --- ChangeLog | 6 ++++++ modules/cdisplay_lcms.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index c8e1771d25..413dbcc733 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-06-27 Sven Neumann + + * modules/cdisplay_lcms.c (cdisplay_lcms_configure): gracefully + handle a NULL config until we have fixed creation of color display + modules so that they always have a reference to GimpColorConfig. + 2005-06-27 Sven Neumann * app/widgets/gimpcolordisplayeditor.c: dialog layout tweaks. diff --git a/modules/cdisplay_lcms.c b/modules/cdisplay_lcms.c index f7d1ca6355..5f940276bc 100644 --- a/modules/cdisplay_lcms.c +++ b/modules/cdisplay_lcms.c @@ -271,6 +271,9 @@ cdisplay_lcms_configure (GimpColorDisplay *display) const gchar *info; gint row = 0; + if (! config) + return NULL; + vbox = gtk_vbox_new (FALSE, 12); hbox = gtk_hbox_new (FALSE, 12);