[gnumeric] sc: fix import problem #663.



commit 604b880dc0498a086d18e925cee4f7bb79b89d02
Author: Morten Welinder <terra gnome org>
Date:   Mon Aug 29 17:35:05 2022 -0400

    sc: fix import problem #663.

 NEWS                 | 1 +
 plugins/sc/ChangeLog | 5 +++++
 plugins/sc/sc.c      | 2 +-
 3 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index de0751f12..29e90fde3 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Morten:
        * Fix near-denormal parsing case.  [#656]
        * Fix midly crazy ROUND edge cases.  [#661]
        * Fix dialog reuse problem.  [#657]
+       * Fix sc import problem.  [#663]
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.52
diff --git a/plugins/sc/ChangeLog b/plugins/sc/ChangeLog
index 12efe5433..5b6694412 100644
--- a/plugins/sc/ChangeLog
+++ b/plugins/sc/ChangeLog
@@ -1,3 +1,8 @@
+2022-08-29  Morten Welinder  <terra gnome org>
+
+       * sc.c (sc_parse_label): Don't try to parse these as numbers.
+       Fixes #663.
+
 2022-04-18  Morten Welinder <terra gnome org>
 
        * Release 1.12.52
diff --git a/plugins/sc/sc.c b/plugins/sc/sc.c
index 45186fcfe..86beb7c6b 100644
--- a/plugins/sc/sc.c
+++ b/plugins/sc/sc.c
@@ -606,7 +606,7 @@ sc_parse_label (ScParseState *state, char const *cmd, char const *str,
        if (!cell)
                goto err_out;
 
-       gnm_cell_set_text (cell, s);
+       gnm_cell_set_value (cell, value_new_string (s));
 
        if (strcmp (cmd, "leftstring") == 0)
                set_h_align (state->sheet, pos, GNM_HALIGN_LEFT);


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