"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 = cal2.EvalFormula(rPattern.PlainVariables(), qsFormula);
|
||||||
dLen = ToPixel(dLen, *rPattern.GetPatternUnit());
|
dLen = ToPixel(dLen, *rPattern.GetPatternUnit());
|
||||||
}
|
}
|
||||||
catch(...)
|
catch(qmu::QmuParserError &e)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -509,8 +509,9 @@ void VToolSeamAllowance::UpdateGrainline()
|
||||||
Calculator cal2;
|
Calculator cal2;
|
||||||
dLength = cal2.EvalFormula(VDataTool::data.PlainVariables(), qsFormula);
|
dLength = cal2.EvalFormula(VDataTool::data.PlainVariables(), qsFormula);
|
||||||
}
|
}
|
||||||
catch(...)
|
catch(qmu::QmuParserError &e)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(e);
|
||||||
m_grainLine->hide();
|
m_grainLine->hide();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user