Fixed exception catching when reading grainline formulas

--HG--
branch : feature
This commit is contained in:
BojanKverh 2016-10-23 21:57:55 +02:00
parent ddb040901b
commit 22d2f2275e

View file

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