gnumeric r16915 - trunk/plugins/fn-tsa



Author: jbrefort
Date: Thu Oct 23 08:31:39 2008
New Revision: 16915
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16915&view=rev

Log:
2008-10-23  Jean Brefort  <jean brefort normalesup org>

	* functions.c: (gnumeric_interpolation): return an error when the number
	of targets is negative (not only when it is nul). [#557515]



Modified:
   trunk/plugins/fn-tsa/ChangeLog
   trunk/plugins/fn-tsa/functions.c

Modified: trunk/plugins/fn-tsa/functions.c
==============================================================================
--- trunk/plugins/fn-tsa/functions.c	(original)
+++ trunk/plugins/fn-tsa/functions.c	Thu Oct 23 08:31:39 2008
@@ -525,7 +525,8 @@
 		break;
 	}
 
-	if (n0 != n1 || n0 == 0 || n2==0) {
+printf("n0=%d n1=%d n2=%d\n",n0,n1,n2);
+	if (n0 != n1 || n0 == 0 || n2 <= 0) {
 		res = value_new_error_std (ei->pos, GNM_ERROR_VALUE);
 		for (i = 0; i < nb; i++)
 			if (values[i])



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