gnumeric r16633 - in trunk: . plugins/derivatives



Author: mortenw
Date: Wed Jun 18 23:34:07 2008
New Revision: 16633
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16633&view=rev

Log:
2008-06-18  Morten Welinder  <terra gnome org>

	* options.c (opt_rgw1): Check for invalid "s" argument.



Modified:
   trunk/NEWS
   trunk/plugins/derivatives/ChangeLog
   trunk/plugins/derivatives/options.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Wed Jun 18 23:34:07 2008
@@ -34,6 +34,7 @@
 	* Fix xls export problem.  [#537625]
 	* Fix ZTEST issue.  [#405958]
 	* Handle foo.XLS as well as foo.xls.  [#510036]
+	* Fix OPT_RGW hang.  [#534132]
 
 SeÃn de BÃrca:
 	* Move to tango based icons. [#450444]

Modified: trunk/plugins/derivatives/options.c
==============================================================================
--- trunk/plugins/derivatives/options.c	(original)
+++ trunk/plugins/derivatives/options.c	Wed Jun 18 23:34:07 2008
@@ -981,6 +981,9 @@
 	gnm_float ci, infinity;
 	gnm_float gfresult;
 
+	if (!(s > 0))
+		return gnm_nan;
+
 	infinity = 100000000;
 	epsilon = 0.00001;
 	sx = s - d * gnm_exp (-r * t1);



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