Fix conversion a piece label with multiple materials.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-08-21 18:07:30 +03:00
parent d8a6ce669e
commit 6a5e684d90

View File

@ -2268,10 +2268,15 @@ void VPatternConverter::RemoveUnusedTagsV0_6_0()
RemoveUniqueTagV0_6_0(strShowDate);
RemoveUniqueTagV0_6_0(strShowMeasurements);
const QDomNodeList nodeList = elementsByTagName(strMCP);
QDomNodeList nodeList = elementsByTagName(strData);
for (int i = 0; i < nodeList.size(); ++i)
{
nodeList.at(i).parentNode().removeChild(nodeList.at(i));
QDomElement child = nodeList.at(i).firstChildElement(strMCP);
while (not child.isNull())
{
nodeList.at(i).removeChild(child);
child = nodeList.at(i).firstChildElement(strMCP);
}
}
}