]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Prevent crash of small arcs presentations
authorvsv <vsv@opencascade.com>
Thu, 30 Aug 2018 07:47:26 +0000 (10:47 +0300)
committervsv <vsv@opencascade.com>
Thu, 30 Aug 2018 07:47:26 +0000 (10:47 +0300)
src/PartSet/PartSet_ResultSketchPrs.cpp

index eec581b6729d57940fa1b29246b8983f4be87b2a..b600306b92cf5f5ed26f09d9dacf6e0ac6473950 100755 (executable)
@@ -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);