gnumeric r16585 - in trunk: . plugins/fn-math



Author: mortenw
Date: Tue May 20 00:41:13 2008
New Revision: 16585
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16585&view=rev

Log:
2008-05-19  Morten Welinder  <terra gnome org>

	* functions.c (gnumeric_sumproduct): Band-aid #533507.




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

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Tue May 20 00:41:13 2008
@@ -4,6 +4,7 @@
 	* Fix INDEX related crash. [#533247]
 	* Fix LINEST and LOGREG crashes.  [#533263]
 	* Handle empty array.  [#533516]
+	* Fix SUMPRODUCT criticals.  [#533507]
 
 Jody:
 	* Fix R1C1 parsing of refs followed by subtraction. [#533943]

Modified: trunk/plugins/fn-math/functions.c
==============================================================================
--- trunk/plugins/fn-math/functions.c	(original)
+++ trunk/plugins/fn-math/functions.c	Tue May 20 00:41:13 2008
@@ -3218,6 +3218,11 @@
 					   GNM_EXPR_EVAL_PERMIT_NON_SCALAR |
 					   GNM_EXPR_EVAL_PERMIT_EMPTY);
 
+		if (!val) {
+			size_error = TRUE;
+			break;
+		}
+
 		thissizex = value_area_get_width (val, ei->pos);
 		thissizey = value_area_get_height (val, ei->pos);
 



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