mirror of https://github.com/Gnucash/gnucash
the refactor in 8cef481e1 introduced a crasher -- in the line
totals_view_col = gtk_tree_view_get_column (priv->totals_tree_view, j);
j would occasionally exceed the number of columns available in the
GtkTreeView and the function would return NULL. This change restores
this behaviour.
I found that switching preference Account -> Default currency radio
buttons would trigger this crasher. To illustrate, add the following
tracer immediately after assigning totals_view_col.
PWARN ("tree_view_col=%p, totals_view_col=%p", tree_view_col, totals_view_col)
pull/1286/head
parent
545830f3b8
commit
8fa197eebf
Loading…
Reference in new issue