From: apo Date: Thu, 9 Feb 2006 13:24:49 +0000 (+0000) Subject: To move calling of a virtual method from a constructor to the Init method X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6259b02da2495bb8dc3c2e9d71e6fa143c46139;p=modules%2Fsmesh.git To move calling of a virtual method from a constructor to the Init method --- diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index 5b21ac70a..5f17220f0 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -263,8 +263,6 @@ SMESH_ActorDef::SMESH_ActorDef() myHighlitableActor->PickableOff(); myHighlitableActor->SetRepresentation(SMESH_DeviceActor::eWireframe); - SetShrinkFactor( SMESH::GetFloat( "SMESH:shrink_coeff", 0.75 ) ); - myName = ""; myIO = NULL; @@ -755,6 +753,8 @@ bool SMESH_ActorDef::Init(TVisualObjPtr theVisualObj, if( !mgr ) return false; + SetShrinkFactor( SMESH::GetFloat( "SMESH:shrink_coeff", 0.75 ) ); + int aMode = mgr->integerValue( "SMESH", "display_mode" ); SetRepresentation(-1);