From: vsv Date: Thu, 12 Jul 2018 09:08:29 +0000 (+0300) Subject: Fix for exception on presentation of arc with radius less 0.001 X-Git-Tag: SHAPER_V9_1_0RC1~128 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1749e253c740945e3b6f8913ac7d814e79e253d8;p=modules%2Fshaper.git Fix for exception on presentation of arc with radius less 0.001 --- diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index be06b5046..1646edc0d 100755 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -253,7 +253,12 @@ void ModuleBase_ResultPrs::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; + } // visualize hidden sub-shapes transparent if (myTransparency < 1 && !myHiddenSubShapes.IsEmpty())