Salome HOME
Fix a bug of AttributeReal: value is converted to bool
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeReal.cxx
index 67071e461ba20c5524107a985affcd3cc8f4eca0..72d73d42192cb02df1b78fd1e483de64edab6c06 100644 (file)
@@ -21,7 +21,7 @@ SALOMEDS_AttributeReal::~SALOMEDS_AttributeReal()
 double SALOMEDS_AttributeReal::Value()
 {
   double aValue;
-  if(_isLocal) aValue = (bool)Handle(SALOMEDSImpl_AttributeReal)::DownCast(_local_impl)->Value();
+  if(_isLocal) aValue = Handle(SALOMEDSImpl_AttributeReal)::DownCast(_local_impl)->Value();
   else aValue = SALOMEDS::AttributeReal::_narrow(_corba_impl)->Value();
   return aValue;
 }