mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
another bug fix, to get sort order right
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1325 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
3e2c53911e
commit
416b3b991e
@ -404,7 +404,7 @@ xaccGroupInsertAccount( AccountGroup *grp, Account *acc )
|
||||
|
||||
/* insert account in proper sort order */
|
||||
for (i=nacc; i>=0; i--) {
|
||||
if ((0<i) && (0 < xaccAccountOrder (&(arr[i]), &acc))) {
|
||||
if ((0<i) && (0 < xaccAccountOrder (&(arr[i-1]), &acc))) {
|
||||
arr[i] = arr[i-1];
|
||||
} else {
|
||||
arr[i] = acc;
|
||||
|
Loading…
Reference in New Issue
Block a user