mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Deleting TaxTable entries can crash application
Change the switch statement to include GNC_AMT_TYPE_VALUE to return a value for row_text[1] and change default to set it to NULL
This commit is contained in:
parent
fade13f813
commit
5ad3cd0d60
@ -377,12 +377,15 @@ tax_table_entries_refresh (TaxTableWindow *ttw)
|
||||
xaccPrintAmount (amount,
|
||||
gnc_default_print_info (FALSE)));
|
||||
break;
|
||||
default:
|
||||
case GNC_AMT_TYPE_VALUE:
|
||||
row_text[1] =
|
||||
g_strdup_printf ("%s",
|
||||
xaccPrintAmount (amount,
|
||||
gnc_default_print_info (TRUE)));
|
||||
break;
|
||||
default:
|
||||
row_text[1] = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
gtk_list_store_prepend(store, &iter);
|
||||
|
Loading…
Reference in New Issue
Block a user