[evolution/gtk3: 34/47] Bug 637141 - Don't pass NULL to	gdk_color_parse()
- From: Matthew Barnes <mbarnes src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [evolution/gtk3: 34/47] Bug 637141 - Don't pass NULL to	gdk_color_parse()
 
- Date: Thu, 13 Jan 2011 01:26:50 +0000 (UTC)
 
commit a3a22a8658f2196c470cc682fba86ce7e2bddee7
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Dec 16 23:39:19 2010 -0500
    Bug 637141 - Don't pass NULL to gdk_color_parse()
 widgets/table/e-cell-text.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index 62d7485..0a44654 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -706,7 +706,7 @@ ect_draw (ECellView *ecell_view, cairo_t *cr,
 			color_spec = e_table_model_value_at (
 				ecell_view->e_table_model,
 				ect->color_column, row);
-			if (gdk_color_parse (color_spec, &color))
+			if (color_spec && gdk_color_parse (color_spec, &color))
 				gdk_cairo_set_source_color (cr, &color);
 		}
 	}
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]