From 1c407b0e22dcabb14f872f6ede803c1bbea5f73a Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Wed, 16 Sep 1998 05:43:13 +0000 Subject: [PATCH] fix an annoying display problem git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1176 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/SplitLedger.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/SplitLedger.c b/src/SplitLedger.c index ded12ae794..0e76070dd5 100644 --- a/src/SplitLedger.c +++ b/src/SplitLedger.c @@ -518,7 +518,14 @@ xaccSRLoadTransEntry (SplitRegister *reg, Split *split, int do_commit) if (s) { accname = xaccAccountGetName (xaccSplitGetAccount (s)); } else { - accname = SPLIT_STR; + /* determine whether s is null because threre are three + * or more splits, or whether there is only one ... */ + s = xaccTransGetSplit (xaccSplitGetParent(split), 1); + if (s) { + accname = SPLIT_STR; /* three or more .. */ + } else { + accname = ""; /* none ... */ + } } xaccSetComboCellValue (reg->mxfrmCell, accname); }