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 6291921e9a
commit d2d27e9e79

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