git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@951 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-08-08 17:59:41 +00:00
parent a6879c29f7
commit 6312a46216

View File

@ -458,6 +458,14 @@ void xaccInitSplitRegister (SplitRegister *reg, int type)
reg->creditCell->blank_zero = 1;
reg->valueCell->blank_zero = 1;
/* ok, now make sure the initail value of 0.0 is blanked.
* if this is not done, then various oddball situations
* will show the non-blanked values.
*/
xaccSetPriceCellValue (reg->debitCell, 0.0);
xaccSetPriceCellValue (reg->creditCell, 0.0);
xaccSetPriceCellValue (reg->valueCell, 0.0);
/* -------------------------------- */
/* define how traversal works */
configTraverse (reg);