diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index a9877109f..9e3813870 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -850,7 +850,7 @@ bool SMESH_ActorDef::Init(TVisualObjPtr theVisualObj, if( !mgr ) return false; - QString aMode = mgr->stringValue( "DisplayMode", "SMESH" ); + QString aMode = mgr->stringValue( "SMESH", "display_mode" ); SetRepresentation(-1); if(aMode.compare("Wireframe") == 0){ @@ -861,8 +861,7 @@ bool SMESH_ActorDef::Init(TVisualObjPtr theVisualObj, SetRepresentation(ePoint); } - aMode = mgr->stringValue( "Shrink", "SMESH" ); - if(aMode == "yes"){ + if(aMode == "Shrink"){ SetShrink(); }