[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 63f5397..b4dbbae 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.");
             }