Kaydet (Commit) 6bb49f53 authored tarafından Andre Fischer's avatar Andre Fischer

122682: Prevent crash when moving nodes.

üst 41a2a272
...@@ -529,10 +529,10 @@ sal_Bool SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes, ...@@ -529,10 +529,10 @@ sal_Bool SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes,
SwNodeIndex aNodeIndex (aRg.aEnd); SwNodeIndex aNodeIndex (aRg.aEnd);
while (aNodeIndex > aRg.aStart) while (aNodeIndex > aRg.aStart)
{ {
SwNode* pNode = rNodes[aNodeIndex.GetIndex()]; SwNode& rNode (aNodeIndex.GetNode());
if (pNode->GetNodeType() != ND_ENDNODE) if (rNode.GetNodeType() != ND_ENDNODE)
break; break;
SwStartNode* pStartNode = pNode->pStartOfSection; SwStartNode* pStartNode = rNode.pStartOfSection;
if (pStartNode==NULL) if (pStartNode==NULL)
break; break;
if ( ! pStartNode->IsTableNode()) if ( ! pStartNode->IsTableNode())
......
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