summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/ndnum.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/docnode/ndnum.cxx b/sw/source/core/docnode/ndnum.cxx
index 270c7d4656b3..06eb0f95ad3d 100644
--- a/sw/source/core/docnode/ndnum.cxx
+++ b/sw/source/core/docnode/ndnum.cxx
@@ -79,8 +79,10 @@ void SwNodes::UpdtOutlineIdx( const SwNode& rNd )
return;
const SwNodePtr pSrch = (SwNodePtr)&rNd;
+
sal_uInt16 nPos;
- pOutlineNds->Seek_Entry( pSrch, &nPos );
+ if (!pOutlineNds->Seek_Entry(pSrch, &nPos))
+ return;
if( nPos == pOutlineNds->size() ) // none present for updating ?
return;