gnumeric r16657 - in trunk: . src



Author: mortenw
Date: Mon Jun 23 20:32:00 2008
New Revision: 16657
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16657&view=rev

Log:
2008-06-23  Morten Welinder  <terra gnome org>

	* src/gnm-datetime.c (datetime_value_to_g): Clear date in case of
	failure.  Fixes #539808.



Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/src/gnm-datetime.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Mon Jun 23 20:32:00 2008
@@ -47,6 +47,7 @@
 	* Fix BESSELI issue.  [#323784]
 	* Fix SLOPE/INTERCEPT critical.  [#539648]
 	* Fix PERCENTRANK.  [#539672]
+	* Fix UMR in WORKDAY.  [#539808]
 
 SeÃn de BÃrca:
 	* Move to tango based icons. [#450444]

Modified: trunk/src/gnm-datetime.c
==============================================================================
--- trunk/src/gnm-datetime.c	(original)
+++ trunk/src/gnm-datetime.c	Mon Jun 23 20:32:00 2008
@@ -64,8 +64,10 @@
 datetime_value_to_g (GDate *res, GnmValue const *v, GODateConventions const *conv)
 {
 	int serial = datetime_value_to_serial (v, conv);
-	if (serial == 0)
+	if (serial == 0) {
+		g_date_clear (res, 1);
 		return FALSE;
+	}
 	datetime_serial_to_g (res, serial, conv);
 	return g_date_valid (res);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]