[evolution/gtk3] Bug 637141 - Don't pass NULL to gdk_color_parse()



commit adbb53e57ab6fbfaf915fc28d3db52c40dd31d89
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 8a5597e..edc9fcc 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -700,7 +700,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]