Author: af
Date: Mon Jul 8 08:11:23 2013
New Revision: 1500600
URL: http://svn.apache.org/r1500600
Log:
122682: Prevent crash when moving nodes.
Modified:
openoffice/trunk/main/sw/source/core/docnode/nodes.cxx
Modified: openoffice/trunk/main/sw/source/core/docnode/nodes.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/core/docnode/nodes.cxx?rev=1500600&r1=1500599&r2=1500600&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/core/docnode/nodes.cxx (original)
+++ openoffice/trunk/main/sw/source/core/docnode/nodes.cxx Mon Jul 8 08:11:23
2013
@@ -529,10 +529,10 @@ sal_Bool SwNodes::_MoveNodes( const SwNo
SwNodeIndex aNodeIndex (aRg.aEnd);
while (aNodeIndex > aRg.aStart)
{
- SwNode* pNode = rNodes[aNodeIndex.GetIndex()];
- if (pNode->GetNodeType() != ND_ENDNODE)
+ SwNode& rNode (aNodeIndex.GetNode());
+ if (rNode.GetNodeType() != ND_ENDNODE)
break;
- SwStartNode* pStartNode = pNode->pStartOfSection;
+ SwStartNode* pStartNode = rNode.pStartOfSection;
if (pStartNode==NULL)
break;
if ( ! pStartNode->IsTableNode())