[gnumeric] fix typo in ssmedian code



commit 01ead3b1794b28fd8da5fec8540c40b7ae6ac5ec
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Fri Apr 8 21:00:46 2011 -0600

    fix typo in ssmedian code
    
    2011-04-08 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* functions.c (gnumeric_ssmedian): fix typo

 plugins/fn-stat/ChangeLog   |    4 ++++
 plugins/fn-stat/functions.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/fn-stat/ChangeLog b/plugins/fn-stat/ChangeLog
index 4ce7d28..0dd4c97 100644
--- a/plugins/fn-stat/ChangeLog
+++ b/plugins/fn-stat/ChangeLog
@@ -1,3 +1,7 @@
+2011-04-08 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* functions.c (gnumeric_ssmedian): fix typo
+	
 2011-03-24  Morten Welinder <terra gnome org>
 
 	* Release 1.10.14
diff --git a/plugins/fn-stat/functions.c b/plugins/fn-stat/functions.c
index 0525979..4fb3568 100644
--- a/plugins/fn-stat/functions.c
+++ b/plugins/fn-stat/functions.c
@@ -2124,7 +2124,7 @@ gnumeric_ssmedian (GnmFuncEvalInfo *ei, GnmValue const * const *argv)
 			gnm_float m1 = data[n / 2];
 			gnm_float m0 = data[n / 2 - 1];
 			result = value_new_float
-				(m1 == m1
+				(m0 == m1
 				 ? gnumeric_ssmedian_calc (data, n,
 							   m1, interval)
 				 : (m0 + m1) / 2);



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