[gnumeric] xlsx: fix import of t.inv



commit 66ae96198f25fa9e803ff80887ec6dc152d3cb0d
Author: Morten Welinder <terra gnome org>
Date:   Tue Apr 19 14:49:26 2022 -0400

    xlsx: fix import of t.inv
    
    We call that r.qt

 NEWS                       | 3 +++
 plugins/excel/xlsx-utils.c | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index bdf536b7c..88ebf04c6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 Gnumeric 1.12.53
 
+Morten:
+       * Fix xlsx import of T.INV.
+
 --------------------------------------------------------------------------
 Gnumeric 1.12.52
 
diff --git a/plugins/excel/xlsx-utils.c b/plugins/excel/xlsx-utils.c
index 69479dd11..f5140ad0a 100644
--- a/plugins/excel/xlsx-utils.c
+++ b/plugins/excel/xlsx-utils.c
@@ -138,9 +138,9 @@ xlsx_func_map_in (GnmConventions const *convs,
        GnmExpr const * (*handler) (GnmConventions const *convs, Workbook *scope,
                                    GnmExprList *args);
        GnmFunc  *f;
-       char const *new_name;
 
        if (0 == g_ascii_strncasecmp (name, "_xlfn.", 6)) {
+               char const *new_name;
                if (NULL != xconv->xlfn_map &&
                    NULL != (new_name = g_hash_table_lookup (xconv->xlfn_map, name + 6)))
                        name = new_name;
@@ -617,6 +617,7 @@ xlsx_conventions_new (gboolean output)
                { "STDEV.P", "STDEVP" },
                { "STDEV.S", "STDEV" },
                { "T.TEST", "TTEST" },
+               { "T.INV", "R.QT" },
                { "T.INV.2T", "TINV" },
                { "VAR.P", "VARP" },
                { "VAR.S", "VAR" },


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