summaryrefslogtreecommitdiffstats
path: root/src/selection-chemistry.cpp
diff options
context:
space:
mode:
authorAdonis Papaderos <ado.papas@yahoo.gr>2010-12-06 21:19:26 +0000
committerAdonis Papaderos <ado.papas@yahoo.gr>2010-12-06 21:19:26 +0000
commitd12c118761fcb72191d3b5db8fdb90082e6b53ec (patch)
tree96e8e6374f44921d581212ef8e79a594f469d96a /src/selection-chemistry.cpp
parentRemove custom color wheel widget in favor of the (relatively) recent GtkHSV. ... (diff)
downloadinkscape-d12c118761fcb72191d3b5db8fdb90082e6b53ec.tar.gz
inkscape-d12c118761fcb72191d3b5db8fdb90082e6b53ec.zip
Make linked offsets respect "Relink duplicated clones" settings
(bzr r9941.1.1)
Diffstat (limited to 'src/selection-chemistry.cpp')
-rw-r--r--src/selection-chemistry.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp
index 6786479d6..55cfe9234 100644
--- a/src/selection-chemistry.cpp
+++ b/src/selection-chemistry.cpp
@@ -415,6 +415,14 @@ void sp_selection_duplicate(SPDesktop *desktop, bool suppressDone)
g_free(newref);
}
}
+ } else if (SP_IS_OFFSET(old_clone)) {
+ for (guint j = 0; j < old_ids.size(); j++) {
+ if (!strcmp(SP_OFFSET(old_clone)->sourceHref+1, old_ids[j])) {
+ gchar *newref = g_strdup_printf("#%s", new_ids[j]);
+ doc->getObjectById(new_ids[i])->repr->setAttribute("xlink:href", newref);
+ g_free(newref);
+ }
+ }
}
}
}