App: fix PropertyXLinkList/SubList::getValues()

This commit is contained in:
Zheng, Lei
2020-06-01 16:11:14 +08:00
committed by wwmayer
parent e0199b3a8f
commit 516a005ced
2 changed files with 8 additions and 12 deletions

View File

@@ -4303,6 +4303,13 @@ void PropertyXLinkSubList::aboutToSetChildValue(Property &) {
}
}
std::vector<App::DocumentObject*> PropertyXLinkSubList::getValues(void) const
{
std::vector<DocumentObject*> xLinks;
getLinks(xLinks);
return(xLinks);
}
//**************************************************************************
// PropertyXLinkList
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -4354,14 +4361,6 @@ void PropertyXLinkList::setPyObject(PyObject *value)
PropertyXLinkSubList::setPyObject(value);
}
//for consistency with PropertyLinkList
const std::vector<App::DocumentObject*> PropertyXLinkList::getValues(void) const
{
std::vector<DocumentObject*> xLinks;
getLinks(xLinks);
return(xLinks);
}
//**************************************************************************
// PropertyXLinkContainer
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++