[NUI] Fix Bug in GetParent() (#1046)
authortscholb <scholb.kim@samsung.com>
Tue, 1 Oct 2019 05:22:43 +0000 (14:22 +0900)
committerhyunjushin <hyunjushin@samsung.com>
Tue, 1 Oct 2019 05:22:42 +0000 (14:22 +0900)
good to go

src/Tizen.NUI/src/public/Window.cs

index 9a6edd9..4f40777 100755 (executable)
@@ -1524,7 +1524,7 @@ namespace Tizen.NUI
         /// <returns>The parent window of the window.</returns>
         /// <since_tizen> 6 </since_tizen>
         public Window GetParent() {
-            Window ret = new Window(Interop.Window.GetParent(swigCPtr), true);
+            Window ret = Registry.GetManagedBaseHandleFromNativePtr(Interop.Window.GetParent(swigCPtr)) as Window;
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }