mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-23 09:26:27 -06:00
Use the correct #define for the number of account types instead
of assuming that ACCT_TYPE_CREDITLINE is the last one. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21239 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
898f07776d
commit
5f980c8d1a
@ -1246,7 +1246,7 @@ make_random_changes_to_account (QofBook *book, Account *account)
|
||||
|
||||
set_account_random_string (account, xaccAccountSetName);
|
||||
|
||||
tmp_int = get_random_int_in_range (ACCT_TYPE_BANK, ACCT_TYPE_CREDITLINE);
|
||||
tmp_int = get_random_int_in_range (ACCT_TYPE_BANK, NUM_ACCOUNT_TYPES - 1);
|
||||
xaccAccountSetType (account, tmp_int);
|
||||
|
||||
set_account_random_string (account, xaccAccountSetCode);
|
||||
|
Loading…
Reference in New Issue
Block a user