[gnumeric] fix tooltips for binom.dist.range (and friends)



commit 35fda801a20da2f95eb8748db40e559160a0a395
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Mon Jun 14 18:04:04 2010 -0600

    fix tooltips for binom.dist.range (and friends)
    
    2010-06-14 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* functions.c: fix arg description of binom.dist.range
    
    2010-06-14  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* gnumeric-expr-entry.c (gee_check_tooltip): function names
    	  may also contain '.'

 plugins/fn-stat/ChangeLog         |    4 ++++
 plugins/fn-stat/functions.c       |    4 ++--
 src/widgets/ChangeLog             |    5 +++++
 src/widgets/gnumeric-expr-entry.c |    3 ++-
 4 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/plugins/fn-stat/ChangeLog b/plugins/fn-stat/ChangeLog
index 1e5d0e1..1271026 100644
--- a/plugins/fn-stat/ChangeLog
+++ b/plugins/fn-stat/ChangeLog
@@ -1,5 +1,9 @@
 2010-06-14 Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* functions.c: fix arg description of binom.dist.range
+
+2010-06-14 Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* functions.c: remove inconsistent periods, etc.
 
 2010-06-14  Morten Welinder  <terra gnome org>
diff --git a/plugins/fn-stat/functions.c b/plugins/fn-stat/functions.c
index 362f2db..dc33865 100644
--- a/plugins/fn-stat/functions.c
+++ b/plugins/fn-stat/functions.c
@@ -1510,12 +1510,12 @@ static GnmFuncHelp const help_binom_dist_range[] = {
 	{ GNM_FUNC_HELP_ARG, F_("trials:number of trials")},
 	{ GNM_FUNC_HELP_ARG, F_("p:probability of success in each trial")},
 	{ GNM_FUNC_HELP_ARG, F_("start:start of the interval")},
-	{ GNM_FUNC_HELP_ARG, F_("end:start of the interval, defaults to @{start}")},
+	{ GNM_FUNC_HELP_ARG, F_("end:end of the interval, defaults to @{start}")},
 	{ GNM_FUNC_HELP_NOTE, F_("If @{start}, @{end} or @{trials} are non-integer they are truncated.") },
 	{ GNM_FUNC_HELP_NOTE, F_("If @{trials} < 0 this function returns a #NUM! error.") },
 	{ GNM_FUNC_HELP_NOTE, F_("If @{p} < 0 or @{p} > 1 this function returns a #NUM! error.")},
 	{ GNM_FUNC_HELP_NOTE, F_("If @{start} > @{end} this function returns 0.")},
-	{ GNM_FUNC_HELP_ODF, F_("This function is the OpenFormula function B") },
+	{ GNM_FUNC_HELP_ODF, F_("This function is OpenFormula compatible.") },
 	{ GNM_FUNC_HELP_EXAMPLES, "=BINOM.DIST.RANGE(5,0.8,3,4)" },
 	{ GNM_FUNC_HELP_SEEALSO, "BINOMDIST,R.PBINOM"},
 	{ GNM_FUNC_HELP_END }
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index 1b47b48..14e1280 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,5 +1,10 @@
 2010-06-14  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* gnumeric-expr-entry.c (gee_check_tooltip): function names
+	  may also contain '.'
+
+2010-06-14  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* gnumeric-expr-entry.h (gnm_expr_entry_close_tips): new
 	* gnumeric-expr-entry.c (gnm_expr_entry_close_tips): new
 	(gee_check_tooltip): new
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index d45e5d0..6cfbd46 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -745,7 +745,8 @@ gee_check_tooltip (GnmExprEntry *gee)
 
 	prefix = str_end = str + strlen (str);
 	do {prefix--;} while (prefix >= str && (('a' <= *prefix && *prefix <= 'z') ||
-						('a' <= *prefix && *prefix <= 'z')));
+						('a' <= *prefix && *prefix <= 'z') ||
+						('.' == *prefix)));
 	prefix++;
 	
 	if (prefix < str_end) {



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