]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL22905: TC650: Projection on face dialog problems V6_5_0b1
authorouv <ouv@opencascade.com>
Sat, 5 May 2012 09:47:42 +0000 (09:47 +0000)
committerouv <ouv@opencascade.com>
Sat, 5 May 2012 09:47:42 +0000 (09:47 +0000)
src/GEOMImpl/GEOMImpl_ProjectionDriver.cxx

index 6c471881726ea2dc23bd878988ea10ea1e19a108..9cb803d7a2dd041424f0cb445a16a9c51fdf4b06 100644 (file)
@@ -200,6 +200,15 @@ Standard_Integer GEOMImpl_ProjectionDriver::Execute(TFunction_Logbook& log) cons
       }
 
       aShape = OrtProj.Shape();
+
+      // check that the result shape is an empty compound
+      // (IPAL22905: TC650: Projection on face dialog problems)
+      if( !aShape.IsNull() && aShape.ShapeType() == TopAbs_COMPOUND )
+      {
+        TopoDS_Iterator anIter( aShape );
+        if( !anIter.More() )
+          Standard_ConstructionError::Raise("Projection aborted : empty compound produced");
+      }
     }
 
     if (aShape.IsNull()) return 0;