From 40958379f4b92772c36d9f163a812a31c4e7497d Mon Sep 17 00:00:00 2001 From: sasilver Date: Sun, 10 Aug 2008 14:44:19 +0000 Subject: [PATCH] Fix for ID clash resolution: avoid finding spurious references associated with clones (fixes bug 256498). --- src/id-clash.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/id-clash.cpp b/src/id-clash.cpp index 5980c9e7b..420b9c3e5 100644 --- a/src/id-clash.cpp +++ b/src/id-clash.cpp @@ -85,7 +85,9 @@ const char* clipboard_properties[] = { static void find_references(SPObject *elem, refmap_type *refmap) { + if (SP_OBJECT_IS_CLONED(elem)) return; Inkscape::XML::Node *repr_elem = SP_OBJECT_REPR(elem); + if (!repr_elem) return; if (repr_elem->type() != Inkscape::XML::ELEMENT_NODE) return; /* check for references in inkscape:clipboard elements */ -- 2.30.2