summaryrefslogtreecommitdiffstats
path: root/src/uri-references.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2015-10-14 23:12:02 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2015-10-14 23:12:02 +0000
commitb2c827e516c82a1efe58602e10f114c104dd7476 (patch)
tree572c8560f9e35ce9e3c6b9a6f462ab1cc34c57fa /src/uri-references.cpp
parentFix snapping while rotating a selection (diff)
downloadinkscape-b2c827e516c82a1efe58602e10f114c104dd7476.tar.gz
inkscape-b2c827e516c82a1efe58602e10f114c104dd7476.zip
Detect trivial loops
Fixed bugs: - https://launchpad.net/bugs/1328079 (bzr r14412)
Diffstat (limited to 'src/uri-references.cpp')
-rw-r--r--src/uri-references.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/uri-references.cpp b/src/uri-references.cpp
index 04f904d39..0aae9b39d 100644
--- a/src/uri-references.cpp
+++ b/src/uri-references.cpp
@@ -75,6 +75,7 @@ bool URIReference::_acceptObject(SPObject *obj) const {
for(int i=positions.size()-2;i>=0;i--)owner=owner->childList(false)[positions[i]];
}
//once we have the "original" object (hopefully) we look at who is referencing it
+ if(obj == owner)return false;
std::list<SPObject*> todo(owner->hrefList);
todo.push_front(owner->parent);
while(!todo.empty()){