[gnumeric] html: fix import problem.



commit d72315d3aa67c4eb43368071deae1b12ea3d9a50
Author: Morten Welinder <terra gnome org>
Date:   Wed Aug 31 16:40:51 2022 -0400

    html: fix import problem.
    
    Recalculation wasn't queued.

 NEWS                     | 1 +
 plugins/html/ChangeLog   | 5 +++++
 plugins/html/html_read.c | 2 +-
 3 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index 8698240a4..ed497e571 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ Morten:
        * Fix dialog reuse problem.  [#657]
        * Fix sc import problem.  [#663]
        * Work a little hard at avoiding -0.  [#652]
+       * Fix html import problem.  [#669]
 
 --------------------------------------------------------------------------
 Gnumeric 1.12.52
diff --git a/plugins/html/ChangeLog b/plugins/html/ChangeLog
index fa18fad10..d4a3799c9 100644
--- a/plugins/html/ChangeLog
+++ b/plugins/html/ChangeLog
@@ -1,3 +1,8 @@
+2022-08-31  Morten Welinder  <terra gnome org>
+
+       * html_read.c (html_read_row): Use sheet_cell_set_text so formulas
+       get marked for recalc.
+
 2022-04-18  Morten Welinder <terra gnome org>
 
        * Release 1.12.52
diff --git a/plugins/html/html_read.c b/plugins/html/html_read.c
index dfd14c2fe..50daf18c7 100644
--- a/plugins/html/html_read.c
+++ b/plugins/html/html_read.c
@@ -267,7 +267,7 @@ html_read_row (htmlNodePtr cur, htmlDocPtr doc, GnmHtmlTableCtxt *tc)
                        if (buf->len > 0) {
                                GnmCell *cell = sheet_cell_fetch (tc->sheet, col + 1, tc->row);
                                sheet_style_set_pos (tc->sheet, col + 1, tc->row, mstyle);
-                               gnm_cell_set_text (cell, buf->str);
+                               sheet_cell_set_text (cell, buf->str, NULL);
                        } else
                                gnm_style_unref (mstyle);
 


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