App: change Link array behavior

Do not behave as group when Link array is collapsed (i.e. ShowElement
is false)
This commit is contained in:
Zheng, Lei
2020-03-14 16:13:57 +08:00
committed by wwmayer
parent 9650d94221
commit 570dd6cf5a

View File

@@ -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) {