mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
f5bbf10224
commit
1277f64c8f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user