Fixed setting an empty value to PropertyLinkSubList

This commit is contained in:
Yorik van Havre 2016-11-13 12:13:31 -02:00
parent d1e3cb7ccb
commit 0aac72b2eb

View File

@ -588,6 +588,7 @@ void PropertyLinkSubList::setValue(DocumentObject* lValue, const std::vector<str
aboutToSetValue();
std::size_t size = SubList.size();
this->_lValueList.clear();
this->_lSubList.clear();
if (size == 0) {
if (lValue) {
this->_lValueList.push_back(lValue);