Commit 7460f981 authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow

Fix editing of hyperlinks. [#700732]

2013-05-22  Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* dialog-hyperlink.c (dialog_hyperlink): preserve the type of
	the link
parent 51d1c3f4
......@@ -4,6 +4,7 @@ Andreas:
* Fix border handling for merged cells in LaTeX export.
* Fix 'Go to First'. [#699631]
* Fix data merges. [#699897]
* Fix editing of hyperlinks. [#700732]
Darrell Tangman:
* Update documentation for Edit and Insert menus. [#700596]
......
2013-05-22 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* dialog-hyperlink.c (dialog_hyperlink): preserve the type of
the link
2013-05-13 Jean Brefort <jean.brefort@normalesup.org>
* doc-meta-data.ui: adjust labels vertical alignment. [#700156]
......
......@@ -603,9 +603,11 @@ dialog_hyperlink (WBCGtk *wbcg, SheetControl *sc)
/* We are duplicating it here rather than in an ok handler in case */
/* The link is changed for a differnt cell in a different view. */
state->link = g_object_new (gnm_hlink_url_get_type (), NULL);
if (link == NULL)
if (link == NULL) {
state->link = g_object_new (gnm_hlink_url_get_type (), NULL);
state->is_new = TRUE;
else {
} else {
state->link = g_object_new (G_OBJECT_TYPE (link), NULL);
state->is_new = FALSE;
gnm_hlink_set_target (state->link, gnm_hlink_get_target (link));
gnm_hlink_set_tip (state->link, gnm_hlink_get_tip (link));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment