From 3a41eb0de6f79ff471ec5eb564446d9d988101fd Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 2 Dec 2008 15:06:28 +0000 Subject: [PATCH] IPAL20694 Qt4 porting: Precision is not taken into account at controls representation --- src/OBJECT/SMESH_Actor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index 9655756f5..13d9f7898 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -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); -- 2.39.2