diff options
Diffstat (limited to 'calendar/gui/dialogs/cal-prefs-dialog.c')
-rw-r--r-- | calendar/gui/dialogs/cal-prefs-dialog.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index 635c665cc1..a821bdc70f 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -528,12 +528,8 @@ set_color_picker (GtkWidget *picker, const char *spec) { GdkColor color; - g_assert (spec != NULL); - - if (!gdk_color_parse (spec, &color)) { + if (!spec || !gdk_color_parse (spec, &color)) color.red = color.green = color.blue = 0; - return; - } gnome_color_picker_set_i16 (GNOME_COLOR_PICKER (picker), color.red, |