]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
IPAL20694 Qt4 porting: Precision is not taken into account at controls representation
authordmv <dmv@opencascade.com>
Tue, 2 Dec 2008 15:06:28 +0000 (15:06 +0000)
committerdmv <dmv@opencascade.com>
Tue, 2 Dec 2008 15:06:28 +0000 (15:06 +0000)
src/OBJECT/SMESH_Actor.cxx

index 9655756f5154da9b34fa108c7114266f955b6dc7..13d9f7898a7c2745dcd1c7bf6d8af8b5a5705787 100644 (file)
@@ -120,8 +120,9 @@ SMESH_ActorDef::SMESH_ActorDef()
 
   myControlsPrecision = -1;
   SUIT_ResourceMgr* mgr = SUIT_Session::session()->resourceMgr();
+  
   if ( mgr && mgr->booleanValue( "SMESH", "use_precision", false ) )
-    myControlsPrecision = (long)SMESH::GetFloat( "SMESH", "controls_precision", -1 );
+    myControlsPrecision = mgr->integerValue( "SMESH", "controls_precision", -1);
 
   vtkFloatingPointType aPointSize = SMESH::GetFloat("SMESH:node_size",3);
   vtkFloatingPointType aLineWidth = SMESH::GetFloat("SMESH:element_width",1);