summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2016-09-15 22:31:44 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-09-15 22:31:44 +0000
commit8ed02c48e6b56a5ea1f204a7938ee20a3da2a65a (patch)
tree6f471cdb59b34c757ee215c0eb69d855cc1d06b9 /src
parentDuplicating text along path and its path relinks to the new path (if the pref... (diff)
downloadinkscape-8ed02c48e6b56a5ea1f204a7938ee20a3da2a65a.tar.gz
inkscape-8ed02c48e6b56a5ea1f204a7938ee20a3da2a65a.zip
Fix minor problem in previous commit
Fixed bugs: - https://launchpad.net/bugs/312116 (bzr r15118)
Diffstat (limited to 'src')
-rw-r--r--src/selection-chemistry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 7606fc477..834f82edc 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -525,7 +525,7 @@ void sp_selection_duplicate(SPDesktop *desktop, bool suppressDone, bool duplicat
const gchar *source_href = sp_textpath_get_path_item(textpath)->getId();
for (guint j = 0; j < old_ids.size(); j++) {
if (!strcmp(source_href, old_ids[j])) {
- textpath->getRepr()->setAttribute("xlink:href", Glib::ustring("#") + new_ids[j]);
+ doc->getObjectById(new_ids[i])->firstChild()->getRepr()->setAttribute("xlink:href", Glib::ustring("#") + new_ids[j]);
}
}
}