From 22d2f2275e368da8b038b15d1ecb08e60f3ac0d7 Mon Sep 17 00:00:00 2001 From: BojanKverh Date: Sun, 23 Oct 2016 21:57:55 +0200 Subject: [PATCH] Fixed exception catching when reading grainline formulas --HG-- branch : feature --- src/app/valentina/xml/vpattern.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index 682114bd6..8530de059 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -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");