]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Initialize myDeflection (and other fields) to avoid FPE at setting deflection
authoreap <eap@opencascade.com>
Fri, 19 Aug 2011 11:49:15 +0000 (11:49 +0000)
committereap <eap@opencascade.com>
Fri, 19 Aug 2011 11:49:15 +0000 (11:49 +0000)
src/OBJECT/GEOM_Actor.cxx

index ffb5bd3debee29f1918058b46cd69ec99f2de930..eeb5f0dc31be7ac75588590a8ff1723a6896e46e 100644 (file)
 #endif
 
 GEOM_Actor::GEOM_Actor(): 
+  isOnlyVertex(false),
+
+  myDeflection(-1),
+  myIsForced(false),
+
   //  myDisplayMode(eWireframe), 
   myIsSelected(false), 
   myVectorMode(false),
+
   myVertexActor(GEOM_DeviceActor::New(),true), 
   myVertexSource(GEOM_VertexSource::New(),true), 
  
@@ -101,8 +107,7 @@ GEOM_Actor::GEOM_Actor():
 
   myHighlightProp(vtkProperty::New()),
   myPreHighlightProp(vtkProperty::New()),
-  myShadingFaceProp(vtkProperty::New()),
-  isOnlyVertex(false)
+  myShadingFaceProp(vtkProperty::New())
 { 
 #ifdef MYDEBUG
   MESSAGE (this<< " GEOM_Actor::GEOM_Actor");