fixes for a core dump

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@669 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-03-18 09:45:54 +00:00
parent f94f5318ad
commit 34bb9e67a4

View File

@ -264,7 +264,7 @@ printf ("load reg of %d entries --------------------------- \n",i);
phys_row += i * (reg->cursor->numRows);
/* i+1 because header is virt row zero */
xaccSetCursor (table, reg->cursor, phys_row, 0, i+1, 1);
xaccSetCursor (table, reg->cursor, phys_row, 0, i+1, 0);
xaccMoveCursor (table, phys_row, 0);
xaccLoadRegEntry (reg, split);
@ -278,7 +278,7 @@ printf ("load reg of %d entries --------------------------- \n",i);
phys_row = reg->header->numRows;
phys_row += i * (reg->cursor->numRows);
xaccSetCursor (table, reg->cursor, phys_row, 0, i+1, 1);
xaccSetCursor (table, reg->cursor, phys_row, 0, i+1, 0);
xaccMoveCursor (table, phys_row, 0);
xaccLoadRegEntry (reg, &(trans->source_split));