From c5972c37e3e6d53a2677b9b3bc42ef00bcc60b91 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 30 Sep 2005 08:34:25 +0000 Subject: [PATCH] Fix a bug of AttributeReal: value is converted to bool --- src/SALOMEDS/SALOMEDS_AttributeReal.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SALOMEDS/SALOMEDS_AttributeReal.cxx b/src/SALOMEDS/SALOMEDS_AttributeReal.cxx index 67071e461..72d73d421 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeReal.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeReal.cxx @@ -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; } -- 2.30.2