[gnumeric] GnmFunc: fix help argument name extraction.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GnmFunc: fix help argument name extraction.
- Date: Sun, 3 Jun 2018 01:06:54 +0000 (UTC)
commit 0115f48a38ca2005fbad17316903f7eaaf887148
Author: Morten Welinder <terra gnome org>
Date: Sat Jun 2 21:06:11 2018 -0400
GnmFunc: fix help argument name extraction.
src/func.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/func.c b/src/func.c
index bcd3f31b6..f3e18baef 100644
--- a/src/func.c
+++ b/src/func.c
@@ -142,6 +142,7 @@ gnm_func_load_stub (GnmFunc *func)
g_signal_emit (G_OBJECT (func), signals[SIG_LOAD_STUB], 0);
if (func->fn_type == GNM_FUNC_TYPE_STUB) {
+ g_printerr ("Failed to load %s\n", func->name);
gnm_func_set_varargs (func, error_function_no_full_info, NULL);
gnm_func_set_help (func, NULL, 0);
}
@@ -457,10 +458,11 @@ gnm_func_set_help (GnmFunc *func, GnmFuncHelp const *help, int n)
func->help[n].type = GNM_FUNC_HELP_END;
func->help[n].text = NULL;
+ func->help_count = n;
gnm_func_create_arg_names (func);
+ } else {
+ func->help_count = 0;
}
-
- func->help_count = n;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]