Fix crash caused by GetPropertyIndex not converting to DALi property format 51/148751/3
authorTom Robinson <tom.robinson@samsung.com>
Fri, 8 Sep 2017 17:59:17 +0000 (18:59 +0100)
committerTom Robinson <tom.robinson@samsung.com>
Tue, 19 Sep 2017 13:46:30 +0000 (13:46 +0000)
Change-Id: Ic7a65c4f1045c81c2b26efefc5d0a101204849f5

Tizen.NUI/src/public/Animatable.cs

index b5c056e..5859e85 100755 (executable)
@@ -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;
         }