X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-base-impl.cpp;h=7add0247e08f04212ae94b3094d9d567bd539686;hb=c4ae93ec0b30096655d57b79c4da2043b11c382e;hp=275f569bab8c0ea45dca6655b320c8b96071e639;hpb=95bc87993608242c8eaff49551ae85b4b78c4de7;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/visual-base-impl.cpp b/dali-toolkit/internal/visuals/visual-base-impl.cpp index 275f569..7add024 100644 --- a/dali-toolkit/internal/visuals/visual-base-impl.cpp +++ b/dali-toolkit/internal/visuals/visual-base-impl.cpp @@ -221,7 +221,7 @@ void Visual::Base::GetNaturalSize( Vector2& naturalSize ) naturalSize = Vector2::ZERO; } -void Visual::Base::SetDepthIndex( float index ) +void Visual::Base::SetDepthIndex( int index ) { mImpl->mDepthIndex = index; if( mImpl->mRenderer ) @@ -230,7 +230,7 @@ void Visual::Base::SetDepthIndex( float index ) } } -float Visual::Base::GetDepthIndex() const +int Visual::Base::GetDepthIndex() const { return mImpl->mDepthIndex; } @@ -521,8 +521,11 @@ void Visual::Base::AnimateProperty( Property::Map map; DoCreatePropertyMap( map ); Property::Value* valuePtr = map.Find( Toolkit::DevelVisual::Property::TYPE ); - int visualType; - valuePtr->Get(visualType); + int visualType = -1; + if( valuePtr ) + { + valuePtr->Get( visualType ); + } if( animator.propertyKey == Toolkit::DevelVisual::Property::MIX_COLOR || animator.propertyKey == MIX_COLOR || @@ -540,7 +543,7 @@ void Visual::Base::AnimateProperty( } else if( mImpl->mRenderer ) { - AnimateRendererProperty(transition, animator); + AnimateRendererProperty( transition, animator ); } }