Fix critical gtk warning introduced with r22360

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22375 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2012-09-09 19:01:02 +00:00
parent f5bbf10224
commit 1277f64c8f

View File

@ -612,7 +612,7 @@ acc_color_data_func (GtkTreeViewColumn *col,
g_free (item);
/* Test if the color string represents a valid color */
if (!gdk_color_parse(acc_color, &color))
if (acc_color && (!gdk_color_parse(acc_color, &color)))
{
g_free (acc_color);
acc_color = NULL;