[gnumeric] Hyperlinks: fix html read after hlink updates.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Hyperlinks: fix html read after hlink updates.
- Date: Wed, 8 Mar 2017 15:28:37 +0000 (UTC)
commit 111bb2f54515fe1704f9852cb9a8152ea21e425c
Author: Morten Welinder <terra gnome org>
Date: Wed Mar 8 10:28:11 2017 -0500
Hyperlinks: fix html read after hlink updates.
plugins/html/ChangeLog | 5 +++++
plugins/html/html_read.c | 8 ++++----
2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/plugins/html/ChangeLog b/plugins/html/ChangeLog
index 6f9bc2b..e59dde2 100644
--- a/plugins/html/ChangeLog
+++ b/plugins/html/ChangeLog
@@ -1,3 +1,8 @@
+2017-03-08 Morten Welinder <terra gnome org>
+
+ * html_read.c (html_read_row): Use gnm_hlink_new to ensure sheet
+ gets set.
+
2017-01-30 Morten Welinder <terra gnome org>
* Release 1.12.33
diff --git a/plugins/html/html_read.c b/plugins/html/html_read.c
index 5dd6693..c5f8c16 100644
--- a/plugins/html/html_read.c
+++ b/plugins/html/html_read.c
@@ -236,13 +236,13 @@ html_read_row (htmlNodePtr cur, htmlDocPtr doc, GnmHtmlTableCtxt *tc)
CXML2C (h_buf->content), h_buf->use);
if (strncmp (url, "mailto:",
strlen ("mailto:")) == 0)
- lnk = g_object_new (
+ lnk = gnm_hlink_new (
gnm_hlink_email_get_type (),
- NULL);
+ tc->sheet);
else
- lnk = g_object_new (
+ lnk = gnm_hlink_new (
gnm_hlink_url_get_type (),
- NULL);
+ tc->sheet);
gnm_hlink_set_target (lnk, url);
gnm_style_set_hlink (mstyle, lnk);
gnm_style_set_font_uline (mstyle,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]