From 5cc46d6fa8277bedeeae184183505a376b8a4cd6 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Tue, 28 Aug 2018 20:04:09 +0900 Subject: [PATCH] Fix GetHierarchyDepth bug Change-Id: If51b1b395833d06ee294cb7c90b4def61c55ae76 Signed-off-by: huiyu.eun --- dali-csharp-binder/src/dali_wrap.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index 84b3a25..466f20c 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -36699,6 +36699,15 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Actor_GetHierarchyDepth(void * jarg1) { { try { result = (int)(arg1)->GetHierarchyDepth(); + Dali::Actor parent = ((Dali::Actor const *)arg1)->GetParent(); + if(parent) + { + const std::string parentName = parent.GetName(); + if(parentName.compare("rootAbsoluteLayout") == 0) + { + result -= 1; + } + } } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; -- 2.7.4