gnumeric r16567 - in branches/gnumeric-1-8: . plugins/fn-stat
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16567 - in branches/gnumeric-1-8: . plugins/fn-stat
- Date: Fri, 16 May 2008 21:17:13 +0100 (BST)
Author: mortenw
Date: Fri May 16 20:17:13 2008
New Revision: 16567
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16567&view=rev
Log:
2008-05-16 Jean Brefort <jean brefort normalesup org>
* functions.c (gnumeric_linest, gnumeric_logreg): Fix code to
order range. Fixes #533263.
Modified:
branches/gnumeric-1-8/NEWS
branches/gnumeric-1-8/plugins/fn-stat/ChangeLog
branches/gnumeric-1-8/plugins/fn-stat/functions.c
Modified: branches/gnumeric-1-8/NEWS
==============================================================================
--- branches/gnumeric-1-8/NEWS (original)
+++ branches/gnumeric-1-8/NEWS Fri May 16 20:17:13 2008
@@ -2,6 +2,7 @@
Jean:
* Evaluate formulas loaded from a text file. [#525107]
+ * Fix LINEST and LOGREG crashes. [#533263]
Jon KÃre:
* Receive clipboard from broken apps. [#524756]
Modified: branches/gnumeric-1-8/plugins/fn-stat/functions.c
==============================================================================
--- branches/gnumeric-1-8/plugins/fn-stat/functions.c (original)
+++ branches/gnumeric-1-8/plugins/fn-stat/functions.c Fri May 16 20:17:13 2008
@@ -4049,7 +4049,7 @@
GnmValue *copy = value_dup (argv[1]);
int firstrow = argv[1]->v_range.cell.a.row;
int lastrow = argv[1]->v_range.cell.b.row;
- if (firstrow < lastrow) {
+ if (firstrow > lastrow) {
int tmp = firstrow;
firstrow = lastrow;
lastrow = tmp;
@@ -4286,7 +4286,7 @@
int firstcol = argv[1]->v_range.cell.a.col;
int lastcol = argv[1]->v_range.cell.b.col;
- if (firstcol < lastcol) {
+ if (firstcol > lastcol) {
int tmp = firstcol;
firstcol = lastcol;
lastcol = tmp;
@@ -4319,7 +4319,7 @@
int firstrow = argv[1]->v_range.cell.a.row;
int lastrow = argv[1]->v_range.cell.b.row;
- if (firstrow < lastrow) {
+ if (firstrow > lastrow) {
int tmp = firstrow;
firstrow = lastrow;
lastrow = tmp;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]