mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
In qof_scan_date returns valid date when day and month are 0
If you start typing a date in the register with the enable autoreadonly option starting with a 0, gdate complains when trying to create a valid date.
This commit is contained in:
parent
00e6ccdda0
commit
1f14d0f629
@ -936,6 +936,9 @@ qof_scan_date_internal (const char *buff, int *day, int *month, int *year,
|
||||
|
||||
g_free (dupe);
|
||||
|
||||
if ((imonth == 0) || (iday == 0))
|
||||
return FALSE;
|
||||
|
||||
if ((12 < imonth) || (31 < iday))
|
||||
{
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user