Salome HOME
ENV: Windows porting.
[modules/geom.git] / src / OBJECT / GEOM_Actor.cxx
index 0ebbf32f4e412e0d78df0246bba60bbe9e8e3bf3..e16b174ba2a27eb17808357042eee5eaef78d1f3 100644 (file)
@@ -185,7 +185,7 @@ void GEOM_Actor::SetShadingProperty(vtkProperty* Prop) {
 // Mapper creating function
 //-------------------------------------------------------------
 void GEOM_Actor::CreateMapper(int theMode) {
-  this->myIsInfinite = myShape.Infinite();  
+  this->myIsInfinite = (bool)myShape.Infinite();  
   if(myShape.ShapeType() == TopAbs_VERTEX) {
     gp_Pnt aPnt = BRep_Tool::Pnt(TopoDS::Vertex(myShape));
     this->SetPosition(aPnt.X(),aPnt.Y(),aPnt.Z());