From: Heeyong Song Date: Mon, 30 Nov 2020 05:31:27 +0000 (+0900) Subject: Fix Coverity issue X-Git-Tag: dali_2.0.4~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F248567%2F2;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git Fix Coverity issue Change-Id: I579967f438c62a7b25a96f78ba6942885fa8d53a --- diff --git a/dali-toolkit/internal/controls/control/control-data-impl.cpp b/dali-toolkit/internal/controls/control/control-data-impl.cpp index 9182c1f..4e7dff9 100755 --- a/dali-toolkit/internal/controls/control/control-data-impl.cpp +++ b/dali-toolkit/internal/controls/control/control-data-impl.cpp @@ -1217,13 +1217,21 @@ void Control::Impl::SetProperty( BaseObject* object, Property::Index index, cons case Toolkit::DevelControl::Property::ACCESSIBILITY_ATTRIBUTES: { - value.Get( controlImpl.mImpl->mAccessibilityAttributes ); + const Property::Map* map = value.GetMap(); + if( map && !map->Empty() ) + { + controlImpl.mImpl->mAccessibilityAttributes = *map; + } break; } case Toolkit::DevelControl::Property::ACCESSIBILITY_ANIMATED: { - value.Get( controlImpl.mImpl->mAccessibilityAnimated ); + bool animated; + if( value.Get( animated ) ) + { + controlImpl.mImpl->mAccessibilityAnimated = animated; + } break; } }