From d2d27e9e79f84a556dde2bfbbe10657c439fb6ec Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sat, 14 Mar 2020 16:13:57 +0800 Subject: [PATCH] App: change Link array behavior Do not behave as group when Link array is collapsed (i.e. ShowElement is false) --- src/App/Link.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/Link.cpp b/src/App/Link.cpp index 82b41aa6d8..732eb95f71 100644 --- a/src/App/Link.cpp +++ b/src/App/Link.cpp @@ -301,7 +301,8 @@ int LinkBaseExtension::_getElementCountValue() const { } bool LinkBaseExtension::extensionHasChildElement() const { - if(_getElementListProperty() || _getElementCountValue()) + if(_getElementListValue().size() + || (_getElementCountValue() && _getShowElementValue())) return true; DocumentObject *linked = getTrueLinkedObject(false); if(linked) {