fix an annoying display problem

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1176 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/xacc-12-patch
Linas Vepstas 28 years ago
parent 560c1c1501
commit 1c407b0e22

@ -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);
}

Loading…
Cancel
Save