Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initialize myDeflection (and other fields) to avoid FPE at setting deflection
[modules/geom.git]
/
src
/
OBJECT
/
GEOM_Actor.cxx
diff --git
a/src/OBJECT/GEOM_Actor.cxx
b/src/OBJECT/GEOM_Actor.cxx
index ffb5bd3debee29f1918058b46cd69ec99f2de930..eeb5f0dc31be7ac75588590a8ff1723a6896e46e 100644
(file)
--- a/
src/OBJECT/GEOM_Actor.cxx
+++ b/
src/OBJECT/GEOM_Actor.cxx
@@
-74,9
+74,15
@@
#endif
GEOM_Actor::GEOM_Actor():
#endif
GEOM_Actor::GEOM_Actor():
+ isOnlyVertex(false),
+
+ myDeflection(-1),
+ myIsForced(false),
+
// myDisplayMode(eWireframe),
myIsSelected(false),
myVectorMode(false),
// myDisplayMode(eWireframe),
myIsSelected(false),
myVectorMode(false),
+
myVertexActor(GEOM_DeviceActor::New(),true),
myVertexSource(GEOM_VertexSource::New(),true),
myVertexActor(GEOM_DeviceActor::New(),true),
myVertexSource(GEOM_VertexSource::New(),true),
@@
-101,8
+107,7
@@
GEOM_Actor::GEOM_Actor():
myHighlightProp(vtkProperty::New()),
myPreHighlightProp(vtkProperty::New()),
myHighlightProp(vtkProperty::New()),
myPreHighlightProp(vtkProperty::New()),
- myShadingFaceProp(vtkProperty::New()),
- isOnlyVertex(false)
+ myShadingFaceProp(vtkProperty::New())
{
#ifdef MYDEBUG
MESSAGE (this<< " GEOM_Actor::GEOM_Actor");
{
#ifdef MYDEBUG
MESSAGE (this<< " GEOM_Actor::GEOM_Actor");