[gnumeric] MUNIT: Make the arbitrary limit sheet-independent.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] MUNIT: Make the arbitrary limit sheet-independent.
- Date: Tue, 15 Jan 2013 20:19:38 +0000 (UTC)
commit d766afd38d3d5dd83bfcece44a190e6165eaeccc
Author: Morten Welinder <terra gnome org>
Date: Tue Jan 15 15:18:53 2013 -0500
MUNIT: Make the arbitrary limit sheet-independent.
Namely 1000.
plugins/fn-math/functions.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/plugins/fn-math/functions.c b/plugins/fn-math/functions.c
index 6b0efaa..2d0c24e 100644
--- a/plugins/fn-math/functions.c
+++ b/plugins/fn-math/functions.c
@@ -2842,8 +2842,7 @@ gnumeric_munit (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
* running out of memory.
*/
if (n * n >= G_MAXINT ||
- n > gnm_sheet_get_max_cols (ei->pos->sheet) ||
- n > gnm_sheet_get_max_rows (ei->pos->sheet)) /* Arbitrary */
+ n > 1000) /* Arbitrary */
return value_new_error_NUM (ei->pos);
ni = (int)n;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]