Kaydet (Commit) 5df32643 authored tarafından Caolán McNamara's avatar Caolán McNamara

guard against infinite recursion

Change-Id: I7c55986fba87dea0c519f60240605db03262dfe9
üst c910e229
......@@ -139,7 +139,7 @@ bool LwpVirtualLayout::HonorProtection()
return false;
LwpVirtualLayout* pParent = dynamic_cast<LwpVirtualLayout*> (GetParent().obj().get());
if(pParent && !pParent->IsHeader())
if (pParent && !pParent->IsHeader() && pParent != this)
{
return pParent->HonorProtection();
}
......@@ -199,7 +199,7 @@ bool LwpVirtualLayout::HasProtection()
return true;
LwpVirtualLayout* pParent = dynamic_cast<LwpVirtualLayout*> (GetParent().obj().get());
if(pParent && !pParent->IsHeader())
if (pParent && !pParent->IsHeader() && pParent != this)
{
return pParent->HasProtection();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment