mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Test for Invoices XML dates not being INT64_MAX
To prevent errors being logged to the trace file when invoices are saved test for the date values not being INT64_MAX which is an unset date.
This commit is contained in:
parent
d677e3c5df
commit
2bcb9bb1a5
@ -83,7 +83,7 @@ maybe_add_string (xmlNodePtr ptr, const char* tag, const char* str)
|
||||
static void
|
||||
maybe_add_time64 (xmlNodePtr ptr, const char* tag, time64 time)
|
||||
{
|
||||
if (time)
|
||||
if (time != INT64_MAX)
|
||||
xmlAddChild (ptr, time64_to_dom_tree (tag, time));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user