| 1835 | } |
| 1836 | |
| 1837 | bool ObjectIdentifier::adjustLinks(ExpressionVisitor& v, |
| 1838 | const std::set<App::DocumentObject*>& inList) |
| 1839 | { |
| 1840 | ResolveResults result(*this); |
| 1841 | if (!result.resolvedDocumentObject) { |
| 1842 | return false; |
| 1843 | } |
| 1844 | if (result.resolvedSubObject) { |
| 1845 | PropertyLinkSub prop; |
| 1846 | prop.setValue(result.resolvedDocumentObject, {subObjectName.getString()}); |
| 1847 | if (prop.adjustLink(inList)) { |
| 1848 | v.aboutToChange(); |
| 1849 | documentObjectName = String(prop.getValue()->getNameInDocument(), false, true); |
| 1850 | subObjectName = String(prop.getSubValues().front(), true); |
| 1851 | _cache.clear(); |
| 1852 | return true; |
| 1853 | } |
| 1854 | } |
| 1855 | return false; |
| 1856 | } |
| 1857 | |
| 1858 | bool ObjectIdentifier::isTouched() const |
| 1859 | { |
nothing calls this directly
no test coverage detected