mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix for a core dump
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@664 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
69009d1d3b
commit
4891cfb7d8
@ -369,6 +369,7 @@ void xaccInitBasicRegister (BasicRegister *reg, int type)
|
||||
|
||||
/* -------------------------------- */
|
||||
table = xaccMallocTable ();
|
||||
xaccSetTableSize (table, header->numRows, header->numCols, 1, 1);
|
||||
xaccSetCursor (table, header, 0, 0, 0, 0);
|
||||
reg->table = table;
|
||||
}
|
||||
|
@ -89,6 +89,7 @@
|
||||
} else { \
|
||||
type ***old_entries; \
|
||||
\
|
||||
/* if we are here, there are more new than old rows */ \
|
||||
if (old_cols >= new_cols) { \
|
||||
\
|
||||
/* new table has fewer columns. */ \
|
||||
|
@ -68,10 +68,10 @@ xaccInitTable (Table * table)
|
||||
table->table_widget = 0;
|
||||
table->next_tab_group = 0;
|
||||
|
||||
table->num_phys_rows = 0;
|
||||
table->num_phys_cols = 0;
|
||||
table->num_virt_rows = 0;
|
||||
table->num_virt_cols = 0;
|
||||
table->num_phys_rows = -1;
|
||||
table->num_phys_cols = -1;
|
||||
table->num_virt_rows = -1;
|
||||
table->num_virt_cols = -1;
|
||||
|
||||
table->current_cursor = NULL;
|
||||
table->current_cursor_virt_row = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user