]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix a bug of AttributeReal: value is converted to bool V3_1_0a1
authorvsr <vsr@opencascade.com>
Fri, 30 Sep 2005 08:34:25 +0000 (08:34 +0000)
committervsr <vsr@opencascade.com>
Fri, 30 Sep 2005 08:34:25 +0000 (08:34 +0000)
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;
 }