From 6b3d2db21b65e0ea9159d4a23f5406fdf898ed7e Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sat, 8 Aug 1998 02:40:15 +0000 Subject: [PATCH] bug fix git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@943 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/splitreg.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/register/splitreg.c b/src/register/splitreg.c index c2e64d5ba5..cf609d1135 100644 --- a/src/register/splitreg.c +++ b/src/register/splitreg.c @@ -446,8 +446,12 @@ void xaccInitSplitRegister (SplitRegister *reg, int type) /* do some misc cell config */ /* balance cell does not accept input; its display only. */ - reg->recsCell->input_output = XACC_CELL_ALLOW_NONE; - reg->balanceCell->cell.input_output = XACC_CELL_ALLOW_NONE; + /* however, we *do* want it to shadow the true cell contents when + * the cursor is repositioned. Othewise, it will just display + * whatever previous bogus value it contained. + */ + reg->recsCell->input_output = XACC_CELL_ALLOW_SHADOW; + reg->balanceCell->cell.input_output = XACC_CELL_ALLOW_SHADOW; /* the debit/credit/value cells show blank if value is 0.00 */ reg->debitCell->blank_zero = 1;