Kaydet (Commit) 595feb2f authored tarafından Caolán McNamara's avatar Caolán McNamara

fix getNonLayout[Real]Parent helpers

Change-Id: Idae11802aaeb3d9192cdf7fe8fae61788bbb9b5b
üst dc5d6deb
......@@ -1074,15 +1074,23 @@ Size getLegacyBestSizeForChildren(const Window &rWindow)
Window* getNonLayoutParent(Window *pWindow)
{
while (pWindow && pWindow->GetType() == WINDOW_CONTAINER)
while (pWindow)
{
pWindow = pWindow->GetParent();
if (!pWindow || pWindow->GetType() != WINDOW_CONTAINER)
break;
}
return pWindow;
}
Window* getNonLayoutRealParent(Window *pWindow)
{
while (pWindow && pWindow->GetType() == WINDOW_CONTAINER)
while (pWindow)
{
pWindow = pWindow->ImplGetParent();
if (!pWindow || pWindow->GetType() != WINDOW_CONTAINER)
break;
}
return pWindow;
}
......
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