From: Tom Robinson Date: Fri, 8 Sep 2017 17:59:17 +0000 (+0100) Subject: Fix crash caused by GetPropertyIndex not converting to DALi property format X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c82290958765fa17d880678c4751a78431ff1e30;p=platform%2Fcore%2Fcsapi%2Fnui.git Fix crash caused by GetPropertyIndex not converting to DALi property format Change-Id: Ic7a65c4f1045c81c2b26efefc5d0a101204849f5 --- diff --git a/Tizen.NUI/src/public/Animatable.cs b/Tizen.NUI/src/public/Animatable.cs index b5c056e..5859e85 100755 --- a/Tizen.NUI/src/public/Animatable.cs +++ b/Tizen.NUI/src/public/Animatable.cs @@ -86,7 +86,9 @@ namespace Tizen.NUI public int GetPropertyIndex(string name) { - int ret = NDalicPINVOKE.Handle_GetPropertyIndex(swigCPtr, name); + string daliPropertyName = name.Substring(0, 1).ToLower() + name.Substring(1); + + int ret = NDalicPINVOKE.Handle_GetPropertyIndex(swigCPtr, daliPropertyName); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; }