From: eap Date: Fri, 19 Aug 2011 11:49:15 +0000 (+0000) Subject: Initialize myDeflection (and other fields) to avoid FPE at setting deflection X-Git-Tag: Before_opencv_branch_20110913~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c5c2bd009df3635175f57855c5dfd3299736b6f;p=modules%2Fgeom.git Initialize myDeflection (and other fields) to avoid FPE at setting deflection --- diff --git a/src/OBJECT/GEOM_Actor.cxx b/src/OBJECT/GEOM_Actor.cxx index ffb5bd3de..eeb5f0dc3 100644 --- a/src/OBJECT/GEOM_Actor.cxx +++ b/src/OBJECT/GEOM_Actor.cxx @@ -74,9 +74,15 @@ #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");