Fix conversion a piece label with multiple materials.
--HG-- branch : develop
This commit is contained in:
parent
d8a6ce669e
commit
6a5e684d90
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user