gnumeric r16815 - in trunk: . plugins/fn-date



Author: mortenw
Date: Sat Sep 20 23:58:43 2008
New Revision: 16815
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16815&view=rev

Log:
2008-09-20  Morten Welinder  <terra gnome org>

	* functions.c (gnumeric_networkdays): Fix UMR. [#553047]



Modified:
   trunk/NEWS
   trunk/plugins/fn-date/ChangeLog
   trunk/plugins/fn-date/functions.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Sat Sep 20 23:58:43 2008
@@ -33,6 +33,7 @@
 	* Fix off-by-one for random_landau.
 	* Fix error check for printing to file.
 	* Fix SUMIF crash.  [#552006]
+	* Fix NETWORKDAYS problem.  [#553047]
 
 --------------------------------------------------------------------------
 Gnumeric 1.9.2

Modified: trunk/plugins/fn-date/functions.c
==============================================================================
--- trunk/plugins/fn-date/functions.c	(original)
+++ trunk/plugins/fn-date/functions.c	Sat Sep 20 23:58:43 2008
@@ -1234,7 +1234,7 @@
 	/* Move to mondays, and check for problems */
 	start_serial = get_serial_weekday (start_serial, &start_offset, conv);
 	end_serial = get_serial_weekday (end_serial, &end_offset, conv);
-	if (!g_date_valid (&start_date) || start_serial < 0 || end_serial < 0)
+	if (!g_date_valid (&start_date) || start_serial <= 0 || end_serial <= 0)
                   return value_new_error_NUM (ei->pos);
 
 	res = end_serial - start_serial;



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