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

ofz#5313 Timeout

Change-Id: I80d0a013f5e88493ef539ee5a8435b9ad2217678
üst d1a8f990
......@@ -252,14 +252,15 @@ void LwpEnSuperTableLayout::XFConvert(XFContentContainer * /*pCont*/)
* @short Get child endnote layout
* @return pointer to endnote layout
*/
LwpVirtualLayout* LwpEnSuperTableLayout::GetMainTableLayout()
LwpVirtualLayout* LwpEnSuperTableLayout::GetMainTableLayout()
{
LwpObjectID& rID = GetChildTail();
LwpVirtualLayout *pPrevLayout = nullptr;
while(!rID.IsNull())
{
LwpVirtualLayout * pLayout = dynamic_cast<LwpVirtualLayout*>(rID.obj().get());
if(!pLayout)
LwpVirtualLayout* pLayout = dynamic_cast<LwpVirtualLayout*>(rID.obj().get());
if (!pLayout || pLayout == pPrevLayout)
{
break;
}
......@@ -268,6 +269,7 @@ void LwpEnSuperTableLayout::XFConvert(XFContentContainer * /*pCont*/)
return pLayout;
}
rID = pLayout->GetPrevious();
pPrevLayout = pLayout;
}
return nullptr;
......
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