diff --git a/src/libs/vlayout/vlayoutpiece.cpp b/src/libs/vlayout/vlayoutpiece.cpp index 255f5c34a..4d9eeadd0 100644 --- a/src/libs/vlayout/vlayoutpiece.cpp +++ b/src/libs/vlayout/vlayoutpiece.cpp @@ -250,8 +250,9 @@ void VLayoutPiece::SetGrainline(const VGrainlineGeometry& geom, const VContainer dLen = cal2.EvalFormula(rPattern.PlainVariables(), qsFormula); dLen = ToPixel(dLen, *rPattern.GetPatternUnit()); } - catch(...) + catch(qmu::QmuParserError &e) { + Q_UNUSED(e); return; } diff --git a/src/libs/vtools/tools/vtoolseamallowance.cpp b/src/libs/vtools/tools/vtoolseamallowance.cpp index d324fda3f..4d13e909a 100644 --- a/src/libs/vtools/tools/vtoolseamallowance.cpp +++ b/src/libs/vtools/tools/vtoolseamallowance.cpp @@ -509,8 +509,9 @@ void VToolSeamAllowance::UpdateGrainline() Calculator cal2; dLength = cal2.EvalFormula(VDataTool::data.PlainVariables(), qsFormula); } - catch(...) + catch(qmu::QmuParserError &e) { + Q_UNUSED(e); m_grainLine->hide(); return; }