r22375 - gnucash/trunk/src/gnome-utils - Fix critical gtk warning introduced with r22360
Geert Janssens
gjanssens at code.gnucash.org
Sun Sep 9 15:01:02 EDT 2012
Author: gjanssens
Date: 2012-09-09 15:01:02 -0400 (Sun, 09 Sep 2012)
New Revision: 22375
Trac: http://svn.gnucash.org/trac/changeset/22375
Modified:
gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c
Log:
Fix critical gtk warning introduced with r22360
Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c 2012-09-06 09:38:20 UTC (rev 22374)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c 2012-09-09 19:01:02 UTC (rev 22375)
@@ -612,7 +612,7 @@
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;
More information about the gnucash-changes
mailing list