Eliminate a runtime error message.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6873 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2002-05-17 01:05:12 +00:00
parent cd00dc6f53
commit a78904819c

View File

@ -622,6 +622,9 @@ gnc_handle_date_accelerator (GdkEventKey *event,
if (event->type != GDK_KEY_PRESS)
return FALSE;
if ((tm->tm_mday == -1) || (tm->tm_mon == -1) || (tm->tm_year == -1))
return FALSE;
g_date_set_dmy (&gdate,
tm->tm_mday,
tm->tm_mon + 1,