From: vsr Date: Fri, 30 Sep 2005 08:34:25 +0000 (+0000) Subject: Fix a bug of AttributeReal: value is converted to bool X-Git-Tag: V3_1_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5972c37e3e6d53a2677b9b3bc42ef00bcc60b91;p=modules%2Fkernel.git Fix a bug of AttributeReal: value is converted to bool --- 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; }