Salome HOME
Prevent crash of small arcs presentations
[modules/shaper.git] / 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);