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