From 1f67e327c4f97c4a8a23515dc320a45f28475e51 Mon Sep 17 00:00:00 2001 From: BojanKverh Date: Sun, 23 Oct 2016 21:45:11 +0200 Subject: [PATCH] Fixed exception catching when reading grainline formulas --HG-- branch : feature --- src/app/valentina/xml/vpattern.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index 4a681cee7..f3d662117 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -731,8 +731,9 @@ void VPattern::ParseDetailElement(const QDomElement &domElement, const Document QString qsLength = GetParametrString(element, AttrLength); detail.GetGrainlineGeometry().SetLength(qsLength); } - catch (...) + catch (VExceptionEmptyParameter eep) { + Q_UNUSED(eep); detail.GetGrainlineGeometry().SetLength(""); } @@ -741,8 +742,9 @@ void VPattern::ParseDetailElement(const QDomElement &domElement, const Document QString qsRot = GetParametrString(element, VToolDetail::AttrRotation); detail.GetGrainlineGeometry().SetRotation(qsRot); } - catch(...) + catch(VExceptionEmptyParameter eep) { + Q_UNUSED(eep); detail.GetGrainlineGeometry().SetRotation(""); } }