diff --git a/src/App/Link.cpp b/src/App/Link.cpp index 7c4859fd7b..3e67cbe16c 100644 --- a/src/App/Link.cpp +++ b/src/App/Link.cpp @@ -1322,8 +1322,8 @@ void LinkBaseExtension::setLink(int index, DocumentObject *obj, auto objs = getElementListValue(); getElementListProperty()->setValue(); - for(auto obj : objs) - detachElement(obj); + for(auto thisObj : objs) + detachElement(thisObj); return; }