gnucash maint: Use the enum name instead of a number for GDateMonth
Geert Janssens
gjanssens at code.gnucash.org
Sun Jan 18 09:12:33 EST 2015
Updated via https://github.com/Gnucash/gnucash/commit/d9900a7b (commit)
from https://github.com/Gnucash/gnucash/commit/a3cf7f28 (commit)
commit d9900a7b4fabf9a0dbff6fc493538e4ceb58218a
Author: Geert Janssens <janssens-geert at telenet.be>
Date: Sun Jan 18 16:05:15 2015 +0100
Use the enum name instead of a number for GDateMonth
This is needed for c++, not really for c.
diff --git a/src/libqof/qof/gnc-date.c b/src/libqof/qof/gnc-date.c
index 7044708..1b9af67 100644
--- a/src/libqof/qof/gnc-date.c
+++ b/src/libqof/qof/gnc-date.c
@@ -654,7 +654,7 @@ gnc_gdate_range_check (GDate *gd)
int year;
if (!g_date_valid (gd))
{
- g_date_set_dmy (gd, 1, 1, 1970);
+ g_date_set_dmy (gd, 1, G_DATE_JANUARY, 1970);
return;
}
year = g_date_get_year (gd);
Summary of changes:
src/libqof/qof/gnc-date.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list