Minor changes to gnucash-sheet and source layout

These changes were concerning the transaction associations functions
This commit is contained in:
Robert Fewell 2019-03-29 17:38:06 +00:00
parent 32e64979d0
commit 2cb34d4874

View File

@ -2694,15 +2694,18 @@ gnucash_sheet_tooltip (GtkWidget *widget, gint x, gint y,
tooltip_text = gnc_table_get_tooltip (table, virt_loc);
// if tooltip_text empty, clear tooltip and return FALSE
if ((tooltip_text == NULL) || (g_strcmp0 (tooltip_text,"") == 0))
if (!tooltip_text || (g_strcmp0 (tooltip_text,"") == 0))
{
gtk_tooltip_set_text (tooltip, NULL);
return FALSE;
}
block = gnucash_sheet_get_block (sheet, virt_loc.vcell_loc);
if (block == NULL)
if (!block)
{
g_free (tooltip_text);
return FALSE;
}
bx = block->origin_x;
by = block->origin_y;