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:
Robert Fewell 2018-06-09 15:04:27 +01:00
parent 00e6ccdda0
commit 1f14d0f629

View File

@ -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))
{
/*