tax table dialog crashes gnucash

Andreas Köhler at
Wed Nov 16 18:03:10 EST 2005


how to reproduce with current trunk: open the tax table editor,
delete the last tax table (create one if necessary), then click the
"edit" button for the table entries on the right hand side.

#0  0xb74a249b in xaccAccountGetRoot (acc=0xe037) at Group.c:458
#1  0xb70426f2 in gnc_tree_model_account_get_iter_from_account
    #(model=0x832fce0, account=0xe037, iter=0xbffc6b2c)
    at gnc-tree-model-account.c:1299
#2  0xb7042b83 in gnc_tree_model_account_get_path_from_account
    #(model=0x832fce0, account=0xe037) at gnc-tree-model-account.c:1346
#3  0xb704f3d4 in gnc_tree_view_account_set_selected_account
    #(view=0x84eb2b8, account=0xe037) at gnc-tree-view-account.c:950
#4  0xb663e302 in new_tax_table_dialog (ttw=0x84c0e10, new_table=0,
    #entry=0x850cef8, name=0x0) at dialog-tax-table.c:270
#5  0xb7734ab3 in g_cclosure_marshal_VOID__VOID () from

A one-liner patch is appended, but I do not know whether this is

"""derek wanted to see this patch and he said he was going to look
at this issue"""

-- andi5
-------------- next part --------------
Index: src/business/dialog-tax-table/dialog-tax-table.c
--- src/business/dialog-tax-table/dialog-tax-table.c	(Revision 11961)
+++ src/business/dialog-tax-table/dialog-tax-table.c	(Arbeitskopie)
@@ -542,6 +542,7 @@
     gncTaxTableBeginEdit (ttw->current_table);
     gncTaxTableDestroy (ttw->current_table);
     ttw->current_table = NULL;
+    ttw->current_entry = NULL;
     gnc_resume_gui_refresh ();

More information about the gnucash-patches mailing list