From bff20519386ec96b48addb2ebce43e491164b54f Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Mon, 30 Nov 2020 14:31:27 +0900 Subject: [PATCH] Fix Coverity issue Change-Id: I579967f438c62a7b25a96f78ba6942885fa8d53a --- .../internal/controls/control/control-data-impl.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dali-toolkit/internal/controls/control/control-data-impl.cpp b/dali-toolkit/internal/controls/control/control-data-impl.cpp index 9182c1f212..4e7dff927e 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; } } -- 2.34.1