"catch" a specific exception type.
--HG-- branch : develop
This commit is contained in:
parent
34b70cfb02
commit
5a2604d2bd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user