diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-10-19 18:13:06 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2010-10-20 14:11:30 +0200 |
commit | aa289b0ad1f12cbb0038d4ebc8b56d8079388ba6 (patch) | |
tree | a4e0ca8a968eb3b53b86aa1a0c593186a77683de | |
parent | 06b90dae7441ecb504ed94682626b4b3de3861dd (diff) |
Fixed a crash when importing some RTF file.
This is pretty hacky... any better fix is welcomed.
-rw-r--r-- | sw/source/core/bastyp/index.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/bastyp/index.cxx b/sw/source/core/bastyp/index.cxx index 144a95bcca..abb2a07636 100644 --- a/sw/source/core/bastyp/index.cxx +++ b/sw/source/core/bastyp/index.cxx @@ -47,8 +47,8 @@ TYPEINIT0(SwIndexReg); // rtti #ifdef CHK -#define IDX_CHK_ARRAY pArray->ChhkArr(); -#define ARR_CHK_ARRAY ChhkArr(); +#define IDX_CHK_ARRAY pArray->ChkArr(); +#define ARR_CHK_ARRAY ChkArr(); void SwIndexReg::ChkArr() @@ -94,7 +94,7 @@ SwIndex::SwIndex(SwIndexReg *const pArr, xub_StrLen const nIdx) nIndex = 0; // steht immer auf 0 !!! } - if( !pArray->pFirst ) // 1. Index ?? + if( !pArray->pFirst || !pArray->pLast ) // 1. Index ?? pArray->pFirst = pArray->pLast = this; else if( nIdx > ((pArray->pLast->nIndex - pArray->pFirst->nIndex) / 2) ) ChgValue( *pArray->pLast, nIdx ); |