Fixed exception catching when reading grainline formulas

--HG--
branch : feature
This commit is contained in:
BojanKverh 2016-10-23 21:45:11 +02:00
parent 5862264a1d
commit 1f67e327c4

View File

@ -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("");
} }
} }