summaryrefslogtreecommitdiffstats
path: root/src/uri-references.cpp
diff options
context:
space:
mode:
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()){