gnumeric r17178 - in trunk: . src
- From: guelzow svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r17178 - in trunk: . src
- Date: Fri, 6 Mar 2009 07:41:12 +0000 (UTC)
Author: guelzow
Date: Fri Mar 6 07:41:12 2009
New Revision: 17178
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17178&view=rev
Log:
2009-03-06 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/func.c (function_def_get_arg_name): don't translate an
empty argument name since you wouldn't get what you expect.
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/src/func.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Fri Mar 6 07:41:12 2009
@@ -4,6 +4,7 @@
* Fix style critical on latex export [#574125]
* Always print the whole printarea even if it has no
content or style. [#554116] [#572818]
+ * Fix translation of argument names for empty names.
Morten:
* Fix multihead issues with cell comments.
Modified: trunk/src/func.c
==============================================================================
--- trunk/src/func.c (original)
+++ trunk/src/func.c Fri Mar 6 07:41:12 2009
@@ -966,7 +966,7 @@
function_def_get_arg_name (GnmFunc const *fn_def, int arg_idx)
{
const char *start, *end;
- char *translated_arguments;
+ const char *translated_arguments;
gunichar uc;
char delimiter[7];
@@ -978,7 +978,9 @@
if (!fn_def->arg_names)
return NULL;
- translated_arguments = _(fn_def->arg_names);
+ translated_arguments = (strlen (fn_def->arg_names)>0
+ ? _(fn_def->arg_names)
+ : fn_def->arg_names);
uc = (strcmp (translated_arguments, fn_def->arg_names) == 0)
? ','
: go_locale_get_arg_sep ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]