Fixed exception catching when reading grainline formulas
--HG-- branch : feature
This commit is contained in:
parent
5862264a1d
commit
1f67e327c4
|
@ -731,8 +731,9 @@ void VPattern::ParseDetailElement(const QDomElement &domElement, const Document
|
||||||
QString qsLength = GetParametrString(element, AttrLength);
|
QString qsLength = GetParametrString(element, AttrLength);
|
||||||
detail.GetGrainlineGeometry().SetLength(qsLength);
|
detail.GetGrainlineGeometry().SetLength(qsLength);
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (VExceptionEmptyParameter eep)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(eep);
|
||||||
detail.GetGrainlineGeometry().SetLength("");
|
detail.GetGrainlineGeometry().SetLength("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -741,8 +742,9 @@ void VPattern::ParseDetailElement(const QDomElement &domElement, const Document
|
||||||
QString qsRot = GetParametrString(element, VToolDetail::AttrRotation);
|
QString qsRot = GetParametrString(element, VToolDetail::AttrRotation);
|
||||||
detail.GetGrainlineGeometry().SetRotation(qsRot);
|
detail.GetGrainlineGeometry().SetRotation(qsRot);
|
||||||
}
|
}
|
||||||
catch(...)
|
catch(VExceptionEmptyParameter eep)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(eep);
|
||||||
detail.GetGrainlineGeometry().SetRotation("");
|
detail.GetGrainlineGeometry().SetRotation("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user