mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Merge branch 'maint'
This commit is contained in:
commit
5db6419cb6
@ -2351,6 +2351,7 @@ GDate
|
|||||||
xaccTransGetDatePostedGDate (const Transaction *trans)
|
xaccTransGetDatePostedGDate (const Transaction *trans)
|
||||||
{
|
{
|
||||||
GDate result;
|
GDate result;
|
||||||
|
g_date_clear (&result, 1);
|
||||||
if (trans)
|
if (trans)
|
||||||
{
|
{
|
||||||
/* Can we look up this value in the kvp slot? If yes, use it
|
/* Can we look up this value in the kvp slot? If yes, use it
|
||||||
@ -2363,10 +2364,6 @@ xaccTransGetDatePostedGDate (const Transaction *trans)
|
|||||||
if (! g_date_valid (&result))
|
if (! g_date_valid (&result))
|
||||||
result = timespec_to_gdate(xaccTransRetDatePostedTS(trans));
|
result = timespec_to_gdate(xaccTransRetDatePostedTS(trans));
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
g_date_clear(&result, 1);
|
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user