set upd max splits to show

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1167 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-09-14 05:05:26 +00:00
parent bd1beee6b7
commit 6be655d0b7

View File

@ -32,6 +32,11 @@
#include "Transaction.h"
#include "util.h"
/* the MAX_QUERY_SPLITS define determines how many transactions should be shown
* in the register. Its set to a default of 30. But this should be converted
* into a user-configurable value. So hack-alert on the configuration aspect.
*/
#define MAX_QUERY_SPLITS 30
/** GLOBALS *********************************************************/
/* These are globals because they describe the state of the entire session.
@ -335,6 +340,9 @@ xaccLedgerDisplayGeneral (Account *lead_acc, Account **acclist, int ledger_type)
xaccQuerySetAccounts (regData->query, regData->displayed_accounts);
xaccQueryAddAccount (regData->query, regData->leader);
/* by default, display only thirty transactions */
xaccQuerySetMaxSplits (regData->query, MAX_QUERY_SPLITS);
/* add this register to the list of registers */
fullList = ledgerListAdd (fullList, regData);