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

Resolves: fdo#84588 loop in TableInfo::getNextNode

Change-Id: I5bb44dc94041c3b3cd9d80ba125594a48c9c921f
üst 1a725ff0
......@@ -2645,9 +2645,15 @@ void MSWordExportBase::WriteText()
if ( &rNd == &rNd.GetNodes().GetEndOfContent() )
break;
SwNode * pCurrentNode = &pCurPam->GetPoint()->nNode.GetNode();
const SwNode * pCurrentNode = &pCurPam->GetPoint()->nNode.GetNode();
const SwNode * pNextNode = mpTableInfo->getNextNode(pCurrentNode);
if (pCurrentNode == pNextNode)
{
SAL_WARN("sw.ww8", "loop in TableInfo");
pNextNode = NULL;
}
if (pNextNode != NULL)
pCurPam->GetPoint()->nNode = SwNodeIndex(*pNextNode);
else
......
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