[NUI] Use 'Container GetParent() for derived class' instead of Parent.
authorguowei.wang <guowei.wang@samsung.com>
Thu, 4 Feb 2021 03:28:43 +0000 (11:28 +0800)
committerheeyongsong <35289263+heeyongsong@users.noreply.github.com>
Tue, 9 Feb 2021 05:36:55 +0000 (14:36 +0900)
src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs

index 63f53978f9d80b4f6fcd490cc665aac2d5ae7ae6..b4dbbae5576820ee4f94cb6e7202e9aa3d291ee5 100755 (executable)
@@ -181,7 +181,7 @@ namespace Tizen.NUI.BaseComponents
             if (child == null || child.GetParent() == null) // Early out if child null.
                 return;
 
-            if (child.Parent != this)
+            if (child.GetParent() != this)
             {
                 throw new System.InvalidOperationException("You have deleted a view that is not a child of this view.");
             }