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:
Mike Alexander 2011-09-06 07:21:04 +00:00
parent 898f07776d
commit 5f980c8d1a

View File

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