From: vsv Date: Thu, 30 Aug 2018 07:47:26 +0000 (+0300) Subject: Prevent crash of small arcs presentations X-Git-Tag: SHAPER_V9_1_0RC1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=77c928cf42b17926f8e493ce556b9cb09b4f97ae;p=modules%2Fshaper.git Prevent crash of small arcs presentations --- diff --git a/src/PartSet/PartSet_ResultSketchPrs.cpp b/src/PartSet/PartSet_ResultSketchPrs.cpp index eec581b67..b600306b9 100755 --- a/src/PartSet/PartSet_ResultSketchPrs.cpp +++ b/src/PartSet/PartSet_ResultSketchPrs.cpp @@ -107,8 +107,12 @@ void PartSet_ResultSketchPrs::Compute( // change deviation coefficient to provide more precise circle //ModuleBase_Tools::setDefaultDeviationCoefficient(myResult, Attributes()); - AIS_Shape::Compute(thePresentationManager, thePresentation, theMode); - + try { + AIS_Shape::Compute(thePresentationManager, thePresentation, theMode); + } + catch (...) { + return; + } if (!myAuxiliaryCompound.IsNull()) { setAuxiliaryPresentationStyle(true);