gnumeric r16578 - in trunk: . src
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16578 - in trunk: . src
- Date: Mon, 19 May 2008 20:45:45 +0000 (UTC)
Author: mortenw
Date: Mon May 19 20:45:45 2008
New Revision: 16578
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16578&view=rev
Log:
2008-05-19 Morten Welinder <terra gnome org>
* src/expr.c (value_intersection): Handle empty array. [#533516]
Fix from Jean.
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/src/expr.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Mon May 19 20:45:45 2008
@@ -3,6 +3,7 @@
Jean:
* Fix INDEX related crash. [#533247]
* Fix LINEST and LOGREG crashes. [#533263]
+ * Handle empty array. [#533516]
Morten:
* Fix Excel export problem for strings that need quoting. [#530704]
Modified: trunk/src/expr.c
==============================================================================
--- trunk/src/expr.c (original)
+++ trunk/src/expr.c Mon May 19 20:45:45 2008
@@ -645,7 +645,9 @@
gboolean found = FALSE;
if (v->type == VALUE_ARRAY) {
- res = value_dup (v->v_array.vals[0][0]);
+ res = (v->v_array.x == 0 || v->v_array.y == 0)
+ ? value_new_error_VALUE (NULL)
+ : value_dup (v->v_array.vals[0][0]);
value_release (v);
return res;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]