gnumeric r16592 - in branches/gnumeric-1-8: . src



Author: mortenw
Date: Tue May 20 20:33:34 2008
New Revision: 16592
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16592&view=rev

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

	* src/value-sheet.c (value_area_get_x_y): Make sure to return an
	empty value, not NULL, when a cell in a range isn't there.  Fixes
	#533953.



Modified:
   branches/gnumeric-1-8/ChangeLog
   branches/gnumeric-1-8/NEWS
   branches/gnumeric-1-8/src/value-sheet.c

Modified: branches/gnumeric-1-8/NEWS
==============================================================================
--- branches/gnumeric-1-8/NEWS	(original)
+++ branches/gnumeric-1-8/NEWS	Tue May 20 20:33:34 2008
@@ -37,6 +37,7 @@
 	* Fix OPT_BS_DELTA assert.  [#533656]
 	* Fix parser crashes.  [#533951]
 	* Fix RANDEXPPOW hang.  [#533965]
+	* Fix array evaluation problem.  [#533953]
 
 --------------------------------------------------------------------------
 Gnumeric 1.8.2

Modified: branches/gnumeric-1-8/src/value-sheet.c
==============================================================================
--- branches/gnumeric-1-8/src/value-sheet.c	(original)
+++ branches/gnumeric-1-8/src/value-sheet.c	Tue May 20 20:33:34 2008
@@ -225,13 +225,15 @@
 		/* Speedup */
 		if (sheet->cols.max_used < a_col ||
 		    sheet->rows.max_used < a_row)
-			return NULL;
+			return value_new_empty ();
 
 		cell = sheet_cell_get (sheet, a_col, a_row);
 		if (cell != NULL) {
 			gnm_cell_eval (cell);
 			return cell->value;
 		}
+
+		return value_new_empty ();
 	} else
 		return v;
 



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