mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
minor stuff
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1270 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
bd908d67fc
commit
9e774a8bed
@ -195,6 +195,7 @@ void
|
||||
xaccQuerySetMaxSplits (Query *q, int max)
|
||||
{
|
||||
if (!q) return;
|
||||
q->changed = 1;
|
||||
q->max_num_splits = max;
|
||||
}
|
||||
|
||||
@ -204,6 +205,7 @@ void
|
||||
xaccQuerySetDateRange (Query *q, time_t early, time_t late)
|
||||
{
|
||||
if (!q) return;
|
||||
q->changed = 1;
|
||||
q->earliest.tv_sec = early;
|
||||
q->latest.tv_sec = late;
|
||||
}
|
||||
@ -449,6 +451,7 @@ void
|
||||
xaccQuerySetSortOrder (Query *q, int arga, int argb, int argc)
|
||||
{
|
||||
if (!q) return;
|
||||
q->changed = 1;
|
||||
|
||||
DECIDE (DESC, MEMO, AMOUNT)
|
||||
DECIDE (DESC, MEMO, NUM)
|
||||
@ -634,6 +637,7 @@ xaccQueryGetSplits (Query *q)
|
||||
}
|
||||
|
||||
/* gather some data about what we just found */
|
||||
/* serious Y2K hack alert -- this should be ULONG_MAX not LONG_MAX */
|
||||
q->earliest_found.tv_sec = LONG_MAX;
|
||||
q->earliest_found.tv_nsec = 0;
|
||||
q->latest_found.tv_sec = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user