diff --git a/src/App/Document.cpp b/src/App/Document.cpp index b28794797529..1a8325de2d51 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -495,7 +495,7 @@ void Document::exportGraphviz(std::ostream& out) const } if(!sgraph) { if(docObj->isDerivedFrom(OriginFeature::getClassTypeId())) - sgraph = GraphList[dynamic_cast(docObj)->getOrigin()]; + sgraph = GraphList[static_cast(docObj)->getOrigin()]; } } if(!sgraph) @@ -2987,15 +2987,15 @@ void Document::getLinksTo(std::set &links, std::map > linkMap; for(auto o : !objs.empty()?objs:d->objectArray) { - if (o == obj) continue; + if(o == obj) continue; auto linked = o; - if (options & GetLinkArrayElement) { - linked = o->getLinkedObject(true, nullptr, Prop_Output | Prop_Hidden, 0); + if(options & GetLinkArrayElement) { + linked = o->getLinkedObject(false); } else { auto ext = o->getExtensionByType(true); linked = ext ? ext->getTrueLinkedObject(false, nullptr, 0, true) - : o->getLinkedObject(false, nullptr, false, 0); + : o->getLinkedObject(false); } if(linked && linked!=o) { if(options & GetLinkRecursive) diff --git a/src/App/DocumentObjectPyImp.cpp b/src/App/DocumentObjectPyImp.cpp index 0e4c1b9430fa..14206f36d93d 100644 --- a/src/App/DocumentObjectPyImp.cpp +++ b/src/App/DocumentObjectPyImp.cpp @@ -718,7 +718,7 @@ PyObject* DocumentObjectPy::getPathsByOutList(PyObject *args) } } -PyObject *DocumentObjectPy::getCustomAttributes(const char* attr) +PyObject *DocumentObjectPy::getCustomAttributes(const char* attr) const { // Dynamic property is now directly supported in PropertyContainer. So we // can comment out here and let PropertyContainerPy handle it. @@ -886,6 +886,6 @@ Py::Boolean DocumentObjectPy::getNoTouch() const { return Py::Boolean(getDocumentObjectPtr()->testStatus(ObjectStatus::NoTouch)); } -void DocumentObjectPy::setNoTouch(const Py::Boolean& value) { +void DocumentObjectPy::setNoTouch(Py::Boolean value) { getDocumentObjectPtr()->setStatus(ObjectStatus::NoTouch,value.isTrue()); }